TLDR: Analyzing MongoDB Pagination Performance Differences
Date: 2017-03-24 Source: https://arpitbhayani.me/blogs/benchmark-and-compare-pagination-approach-in-mongodb
Overview
Benchmark of MongoDB pagination strategies! See which method (_id vs skip/limit) performs best for large datasets. MongoDB is a document based data store and hence pagination is one of the most common use case of it.
Key Points
- Showing huge set of results on user interface
- For huge result set, paginating using _id
- For smaller result set, it does not matter, but prefer skip and limit.
Takeaway
If you have any suggestion or improvement, do let me know.