[SERVER-72516] CSI validation: Optimize _addIndexEntryErrors() Created: 04/Jan/23 Updated: 29/Oct/23 Resolved: 11/Jan/23 |
|
| 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: | Colin Stolley | Assignee: | Colin Stolley |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | QE 2023-01-09, QE 2023-01-23 |
| Participants: |
| Description |
|
ian.boros@mongodb.com observed that at https://github.com/mongodb/mongo/blob/aaddbc893195ddd4443d9e8896c0627b28bbb9ff/src/mongo/db/catalog/column_index_consistency.cpp#L121-L146 we seek against CSI twice, which can probably be avoided. Simplifying this to a single round of seeks would result in better performance and the code would likely be easier to follow. |
| Comments |
| Comment by Githook User [ 11/Jan/23 ] |
|
Author: {'name': 'Colin Stolley', 'email': 'colin.stolley@mongodb.com', 'username': 'ccstolley'}Message: |