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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Storage Execution
    • Fully Compatible
    • Execution NAMR Team 2023-06-26
    • 35

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: