-
Notifications
You must be signed in to change notification settings - Fork 0
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
Paginate large filter results #199
Comments
Here's how we can do this: Server-side:
Client-side:
We want to avoid the The UI will need to save the last ObjectId/token and pass it to the BFF to paginate the results. We can probably add |
Just ran a benchmark: returning all documents took 1.7s with 4.3 MB of data. By limiting to 100 documents, it now takes 0.43s with 0.64 MB of data. That's 4x faster with 6.7x less data! |
This app has grown to the point that there are now hundreds of recipes stored in MongoDB. To make queries more efficient and to encourage lazy-loading on the front-end, see https://www.mongodb.com/docs/atlas/atlas-search/paginate-results/ for how to paginate
$search
results.The text was updated successfully, but these errors were encountered: