Pymongo cursor not looping

隐身守侯 提交于 2019-12-24 16:34:20

问题


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?

来源:https://stackoverflow.com/questions/14685492/pymongo-cursor-not-looping

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!