How does mongodbcriver page?

  mongodb, question

Thank you all. The problem here is not foundC interfaceThe operation of paging query of.

English is too poor, and there is no paging correlation found on mongoDB’s website.
There are additions, deletions, changes and counts, but there is no paging operation found. . .

The conventional method is:


There is also a better way:

db.users.find().limit(pageSize);  //first page
 Last_id = ... // save the last _id
 users = db.users.find({'_id'> last_id}). limit(10);  //page 2
 Last_id = ... // update last _ id