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

Use range bounded cursors for restoring cursors in the record store after yielding

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • Execution NAMR Team 2023-06-26
    • 35

      Every query (reads and writes) saves and restores cursors to support yielding. When restoring the cursor, we reposition it by calling search_near() on the _lastReturnedId which we stored when we called next() prior to yielding the cursor.

      We can use bounded cursors to improve the performance when repositioning the cursor in the WT record store. This could be useful for example for capped collections when we're making a lot of deletes and the cursor unnecessarily traverses the deleted records to reposition itself.

            Assignee:
            erin.liang@mongodb.com Erin Liang
            Reporter:
            shinyee.tan@mongodb.com Shin Yee Tan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: