-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.1.1
-
Component/s: None
-
None
I'm trying to figure out how to kill cursors in pymongo 2.1.1. From the API docs, it appears that there's a kill_cursors() on the connection, but that method takes cursor ids. I don't see anything in the docs saying how to get a cursor's id, however. It seems as if
(a) connection.kill_cursors() might as well support taking a list of cursor objects, or
(b) cursors might as well have a way to report their ids, or
(c) cursors might as well have a kill() method.
These aren't mutually exclusive and I don't care which one is available, so long as at least one of them is documented/nominally supported.