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

Support exhaust cursor flag.

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6
    • Component/s: None
    • Security Level: Public
    • Labels:
      None
    • Sprint:
      Sprint 1

      Description

      Need to set the exhaust query flag:
      http://www.mongodb.org/display/DOCS/Mongo+Wire+Protocol#MongoWireProtocol-OPQUERY but that's not all.

      Caveats:

      1. Exhaust and limit are not compatible.
      2. Exhaust cursors are not supported by mongos and can not be used with a sharded cluster.
      3. Exhaust cursors require an exclusive socket connection to MongoDB. If the Cursor is discarded without being completely iterated the underlying socket connection will be closed and discarded without being returned to the connection pool.
      4. If you create an exhaust cursor in a request (http://api.mongodb.org/python/current/examples/requests.html), you must completely iterate the Cursor before executing any other operation.
      5. The per-query network_timeout option is ignored when using an exhaust cursor.

      Note: The Ruby implementation isn't quite right in that a large result set could cause the process to hit OOM.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              behackett Bernie Hackett
              Reporter:
              behackett Bernie Hackett
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: