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

Use unowned SortedDataInterface API for SBE index scans

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • v8.0
    • QE 2024-04-01, QE 2024-04-15
    • 35

      We built two new APIs that return data from a SortedDataInterface cursors (an index) without copying any underlying data. These APIs are seekForKeyValueView() and nextKeyValueView().

      Adopt these new APIs for SBE index scans.

      These APIs return unowned data that must be copied with getValueCopy() if they need to be available after advancing, destructing, or repositioning a cursor. Failing to do so properly risks memory errors.

            Assignee:
            zixuan.zhuang@mongodb.com Zixuan Zhuang
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: