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

Allow multiple clients to use a single cursor.

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • 2.2.3
    • Querying
    • None
    • All
    • Query Execution
    • Fully Compatible

    Description

      Currently the mongod server upon seeing a cursor that is already locked returns a empty result to the client with a cursor id of zero. This will cause the client to consider the cursor exhausted and stop any active iteration.

      There are cases where having multiple threads/processes reading from the same cursor is advantageous. The current processing makes handling those situations more difficult as the client cannot tell if the cursor is really exhausted or was just being actively read by another process.

      Implementing this functionality would be a component of allowing clients to use a cursor as a shared work queue.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            robert.j.moore@allanbank.com Robert Moore
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: