Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-335

Unclear from docs how to kill one or many cursors

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.2
    • 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.

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            richard.kreuter Richard Kreuter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: