Answer the question
In order to leave comments, you need to log in
MongoDB 2.6.11 .skip() does not work correctly. Have you encountered such behavior?
I did not find information about this behavior of mongi.
On 3.2.0, this problem is not observed.
Essence:
3.2.0
> db.somecollectionname.count()
1696744
> db.somecollectionname.find().skip(1696743).limit(10)
// ...
// как и положено выдает 1 запись
> db.somecollectionname.count()
771018
> db.somecollectionname.find().skip(771018).limit(10)
// ...
// выдает 10 записей
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question