Skip to content

query for profile.json #6079

Open
Open
@zreptil

Description

There is currently a problem with iOS loop, which fills the profile table with an enormous amount of identical profiles and additional "loopSettings" data. I think iOS loop is misusing the profiles table.

The problem with this is, that it is not possible to query the data from the profile table in such a way as it is possible with entries and treatments. If the data is requested, one gets all the data in the table and this can hit the timeout of the server so that nothing is sent back over the api.

It would be good, if there were a way to restrict the data just like with entries and treatments with find option. For example something like this:

xxx/api/v1/profile.json?find[millis][$gte]=1600639200000&find[millis][$lte]=1600725599999

This should return only the profileentries between two dates.

The source of the problem is iOS loop, that is misusing the profile table for storing information that would be better placed in treatments or devicestatus. Since there is no query for profile up to now, i think it was never considered to hold such large amounts of data. I got testdata from users that have several thousands entries in the profile table. Most of them are identical except for the loopSettings part.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions