-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Storage Execution
-
Execution Team 2024-04-29, Execution Team 2024-10-14, Execution Team 2024-10-28, Execution Team 2024-11-11, Execution Team 2024-11-25, Execution Team 2024-12-09, Execution Team 2024-12-23, Execution Team 2025-01-06
Instead of key_string::Value, all functions in SortedDataInterface should accept an unowned parameter (preferably SortedDataKeyValueView) that contains the correctly encoded key and value format for the underlying index type.
Goals:
- Each index implementation does not have to perform any decoding or re-encoding to insert or remove from the index. All work is done by the caller and all SDI API functions accept an opaque key that is in exactly the right format for inserting, deleting, or seeking.
- No functions on SortedDataInterface accept a key_string::Value.
Implementation details:
- Each SDI exposes an implementation-defined generator that constructs opaque keys given an allocator, BSON, and a RecordId.
- This generator can generate keys for insertion, deletion, and seeking.
- is related to
-
SERVER-89352 Replace all seek-related key_string::Value parameters in SortedDataInterface with StringData
- Closed
- split to
-
SERVER-96456 Support unowned keys in SortedDataInterface::dupKeyCheck()
- Closed
-
SERVER-97981 Eliminate redundant duplicate key checking in SortedDataBuilderInterface
- Closed