I'm using MongoKit to perform iteration over a huge amount of data.
During this process my cursor becomes invalid, and I'm getting
OperationFailure: cursor id '369397057360964334' not valid at server
I've read in mailing lists that I can pass parameter timeout=False
to .find()
method, but PyMongo FAQ says that I vave to take care of closing cursor myself.
But I didn't find methods in MongoKit for that.
Do I need to close cursor myself, and if yes - how can I do it?