mongo请求超时

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)
原文地址:https://www.cnblogs.com/tjp40922/p/12150495.html