[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: SERVER-72516: Simplify suspect investigation in CSI validation.
Branch: master
https://github.com/mongodb/mongo/commit/dc3197e0f68ace45dcfb71b7e31962a41974e636

Generated at Thu Feb 08 06:22:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.