Does mongodb always output the data in the same order (when skip,limit)?

Viewed 23

If I fetch with pymongo multiprocessing from a database with 1Mio entries 10x100k do I get all entries or can it be that times not all are fetched.

I have run a test 500 times and checked if all items are included. Until now it has worked every time.

But is there a guarantee for this?

I fetch my data with skip and limit:

cursor = (col.find({},{"_id": 0}).skip(skip_value).limit(100000))

Where skip_value will always be 0,100k,200k.... 900k .

0 Answers
Related