Like any developer , I had an idea to use Limits, Skips, and Sorts query mechanism to achieve pagination. But on long run if document is going to have more than few thousand records , then it is not a good practices to use Limits, Skips, and Sorts. As Limits, Skips, and Sorts reduces the performance on large scale documents
The solution uses MongoDB
$slice instead. But it also requires always knowing the total number of items in the list.
Original title and link: Pagination With MongoDB (NoSQL database©myNoSQL)