Skip to content

arpitbbhayani/mongo-pagination-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongo Pagination Benchmark

This repository contains Python code that benchmarks the two approaches for implementing pagination in MongoDB

  • Using cursor.skip and cursor.limit
  • Using _id and cursor.limit

Setup

All required packages are put into requirements.lock file so all you need to run is the following command

pip install -r requirements.lock

Execute

python main.py

The results and analysis are compiled in this blog post

About

Benchmarks two approaches to paginate in MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages