Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-604

Global (not connection dependend) cursors + Backward reading

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Usability
    • None
    • MongoDB / MacOS X

    Description

      If I understand the documentation correctly a cursor is only valid in the context of a specific connection.

      I'm using a pool of MongoDB connections and if a client pages trough the results I currently have to use skip/limit (which can become quite slow for bigger values of skip) because I can't depend on getting the same connection from the pool for every request.

      So please add an option to make a cursor available globally for all connections.

      Another nice feature to have would be the ability to use the cursor to not just read forward, but backwards to (Use-Case: User chooses to view previous result page).

      I don't really know what the syntax for this could look like, because a negative value for "limit" is already used to invalidate the cursor in place.

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            x6j8x Sascha Matzke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: