RecordStore bounded seek API to replace seekNear

XMLWordPrintableJSON

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

      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
            Reporter:
            Louis Williams
            Votes:
            1 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: