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.
- related to
-
SERVER-134081 Express user-index plan spins forever when an index entry references a missing record
-
- Waiting For User Input
-