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

RecordStore bounded seek API to replace seekNear

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Storage Execution
    • Fully Compatible
    • Execution Team 2024-02-05, Execution Team 2024-02-19

      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.

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

              Created:
              Updated:
              Resolved: