[SERVER-44383] Use trivial BSON conversion for sort key generation Created: 01/Nov/19 Updated: 29/Oct/23 Resolved: 04/Nov/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Justin Seyster | Assignee: | Justin Seyster |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Sprint: | Query 2019-11-18 | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 0 | ||||||||||||
| Description |
|
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. |
| Comments |
| Comment by Githook User [ 02/Nov/19 ] |
|
Author: {'name': 'Justin Seyster', 'username': 'jseyster', 'email': 'justin.seyster@mongodb.com'}Message: |