Pymongo cursor not looping

2019-08-07 14:23发布

问题:

This works-

cursor = collection.find(query).limit(10678)
for doc in cursor: print "entered loop"

This doesn't-

cursor = collection.find(query).limit(10679)
for doc in cursor: print "entered loop"  

It just doesn't enter the loop. Ofcourse this upper-limit-number is different for different collections, which may be because of difference in size of each doc. So is there any size limitation for cursors in pymongo ?
Any clues?