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