The express path uses SortedDataInterface::seek to get an IndexKeyEntry to get the RecordId; this involves allocating a BSONObj for the dehydrated index key, which we don't use. We should consider using seekForKeyValueView which returns a view over wiredtiger data that is a keystring + RID tuple. This avoids unnecessary work and may improve the performance of the express path.
Use seekForKeyValueView in Express path to get RID from index scan
- Assignee:
-
Hana Pearlman
- Reporter:
-
Ben Shteinfeld
- Votes:
-
0 Vote for this issue - Watchers:
-
6 Start watching this issue
- Created:
- Updated:
- Resolved: