[SERVER-71644] Avoid parsing durable catalog entry when we only need to compare as BSON Created: 28/Nov/22 Updated: 29/Oct/23 Resolved: 05/Dec/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.3.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Henrik Edin | Assignee: | Will Buerger |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Execution Team 2022-12-12 |
| Participants: |
| Description |
|
When openCollection is called without a timestamp the durable catalog entry is compared as BSON against the collection instance in pending/catalog to determine which matches. Currently we always use getParsedCatalogEntry and then re-convert the entry to BSON for the comparison above. In the code path where we know we will only need the catalog entry as BSON we should request it as BSON from the durable catalog to avoid this unnecessary conversion. |
| Comments |
| Comment by Githook User [ 05/Dec/22 ] |
|
Author: {'name': 'Will Buerger', 'email': 'will.buerger@mongodb.com', 'username': 'wbuerger46'}Message: |