Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not run find when responding to count #2923

Closed

Conversation

TylerBrock
Copy link
Contributor

I'm not sure if this is expected behavior but when the count option is provided to restQuery we probably do not want to incur the cost of first running the find, throwing the results away, then finally running the count. We should probably just run the count.

@flovilmart
Copy link
Contributor

flovilmart commented Oct 24, 2016

Actually, per the documentation, it seems that it's the documented behaviour. If you don't want to run the find alongside the count, pass limit=0...

http://parseplatform.github.io/docs/rest/guide/#counting-objects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants