-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Configuration option to change the default limit on the size of query result collection #8149
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
Comments
Thanks for opening this issue!
|
That's actually a pretty easy PR. Do you want to give it a try? |
I do. Just wanted to make sure you'll accept this feature. |
Sure, the scope is to add a new Parse Server option for |
Yep |
Great, if you need any help just comment. Regarding adding a new option I suggest to read through the Contributions Guide which has a comprehensive chapter dedicated to that. |
…queries' size (issue parse-community#8149)
@mtrezza , I opened a PR with my changes. Will appreciate if you could assist me with merging it. |
following random issues/PRs even if the 10k limit is enabled can parse performantly return this many records based on testing in this issue #6543 |
We're building a fully-offline app. Therefore, we need to fetch all the required information upfront and store it in the local database on mobile devices. In this case, pretty much all our queries should have no limit. If we'll see any specific perf bottleneck, we'll optimize it then. |
We only actively backport security fixes to 4.x LTS. If you would like to see this backported, you'd need to open another PR for the |
@mtrezza , I incorporated your feedback into my PR. There is one change you requested which I tried to perform, but looks like it isn't required. I left a detailed explanation in the PR. Please take a look and approve if my explanation makes sense. |
New Feature / Enhancement Checklist
Current Limitation
By default, all queries have a limit of 100 on the returned collection size. This limit can be changed by invoking
query.limit(<some number>)
in JS or analogous methods in other SDKs, but this approach is cumbersome and error-prone.I think that giving Parse-Server users an ability to change the default limit on the server side would be great.
Feature / Enhancement Description
Additional startup configuration option that changes the default query result size limit.
Proposed name:
queryResultSizeLimit
Example Use Case
Alternatives / Workarounds
The current workaround is to change the limit manually in all queries on the client side. If there are multiple clients, all of them need to perform these changes.
3rd Party References
The text was updated successfully, but these errors were encountered: