-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
Fully Compatible
-
QO 2024-03-18, QO 2024-04-01, QO 2024-04-15
When extracting a sort key from a document, we need to handle the case where the Document storage uses backing BSON (returning BSONElement) vs Value. This runtime dispatch can be expensive (2-3% in certain sort heavy workloads) and should be possible to simplify at query planning time to always use the BSON or Value path.
- is related to
-
SERVER-90871 Document::getNestedFieldNonCaching returns incorrect result
- Closed