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.
- depends on
-
SERVER-86151 Create unowned SortedDataInterface data return type
- Closed
- is related to
-
SERVER-88886 Anna perf tiger tracking ticket
- In Progress
-
SERVER-89390 Avoid extra alloc/free for key_string::Value copy
- Closed
- related to
-
SERVER-88445 Investigate whether ProjectStageCovered can reuse BSON buffer from index scan
- Closed
-
SERVER-81012 Support returning unowned KeyStrings from SortedDataInterface
- Closed