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

Improve RecordStore seekNear API

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Storage Execution
    • Execution Team 2024-02-05, Execution Team 2024-02-19

    Description

      The seekNear API has bizarre semantics that requires the implementation to moving the cursor back and forth to return the correct key. If seekNear returns a previous key, then the caller has to call next() to advance.

      Replace this API or create another with lower_bound and upper_bound semantics to speed up seeks on both the oplog and clustered collections. Consider using bounded cursors here.

      As a specific goal, this would mean clustered collections scans only need to make one API call into the cursor when seeking. See this comment.

      Attachments

        Activity

          People

            wei.hu@mongodb.com Wei Hu
            louis.williams@mongodb.com Louis Williams
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated: