no_cursor_timeout=True参数的使用

实例:

import pymongo
 
handler = pymongo.MongoClient().db.col
with handler.find(no_cursor_timeout=True) as cursor:
 for row in cursor:
  parse_data(row)

相关文章: