-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Query 2019-11-18
-
0
The SortKeyGenerator uses 'documentToBsonWithSortPaths()' to convert a Document to a BSONObj for the key generation slow path. In many cases, though, no conversion is necessary, and it's faster just to use the BSON that already exists within the Document.
This change adds a function to perform this "trivial" conversion from Document to BSON when possible.
- split from
-
SERVER-29104 Make sort key generation faster
- Closed