Use unowned SortedDataInterface API for SBE index scans

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

                Created:
                Updated:
                Resolved: