[SERVER-61560] simplify cursor initialization for unique key validation Created: 17/Nov/21  Updated: 27/Feb/23  Resolved: 27/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Backlog - Storage Execution Team
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-61159 Check for duplicates before convertin... Closed
is related to SERVER-71061 Ensure column index validation works Closed
Assigned Teams:
Storage Execution
Sprint: Execution Team 2022-01-24, Execution Team 2022-02-07
Participants:

 Description   

The validation code for verifying that a unique index contains no duplicates builds a KeyString to position the cursor at the beginning of the index. It would be nice to simplify this initial step of the index scan process.



 Comments   
Comment by Benety Goh [ 27/Feb/23 ]

connie.chen@mongodb.com, this ticket was filed against a very old version of this code. I think the ticket is not very relevant now.

Comment by Benety Goh [ 27/Feb/23 ]

The enhancement proposed in this ticket refers to code that has since been refactored in SERVER-71061 to delegate the index traversal to the respective keystring/columnar index store consistency checkers.

So it should be ok to close this ticket as Won't Do.

Comment by Benety Goh [ 17/Nov/21 ]

Any improvements made to the validation logic may also be applied to the index scanning logic for converting an index to unique introduced in SERVER-61159.

Generated at Thu Feb 08 05:52:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.