To reduce the amount of downloaded data and thus data and CPU usage, I want to remove entities not matching an attribute of the calling user from the data returned, only using the Kinvey REST API.
To clarify my wish, here an example:
Now I want to reduce the data to only the entities matching the Users ID, so
Value='a' and Value='d'
Any suggestions would be greatly appreciated. Thanks!
First, please do not use the REST API, but use an appropriate SDK for your development platform. The REST API's handshakes for login, maintaining your token, etc. is all quite hard and the SDK's do the hard for you.
Each SDK has operators for querying. For instance, with Swift, it'll look like this: http://devcenter.kinvey.com/ios/guides/datastore#operators
KCSQuery(onField: "colors", usingConditional: .KCSAll, forValue: )
For completeness, in the REST API this would be modeled with the
query parameter, like this: