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

Add support for reusing cursors in Collections API

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • RSS Sydney

      Nowadays the operations performed using the Collections API are all independent. If we want to do a read-modify-write sequence of operations we will use two separate WT cursors: one for obtaining the document, and another to write the changes.

      This is inefficient as the second cursor will need to be positioned to the same location as the first one. Ideally we should be able to reuse the first one to perform the write as it is already positioned where it will perform the update.

      This should improve performance by avoiding unnecessary cursor operations.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: