[SERVER-29497] Validate should use KeyString for comparison instead of woCompare Created: 07/Jun/17  Updated: 30/Oct/23  Resolved: 19/Jun/17

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

Type: Improvement Priority: Major - P3
Reporter: Geert Bosch Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Comparison.png     PNG File ComparisonSmall.png    
Backwards Compatibility: Fully Compatible
Sprint: Storage 2017-06-19, Storage 2017-07-10
Participants:

 Description   

Currently RecordStoreValidateAdaptor::traverseIndex calls woCompare to check ordering of index keys, but a few lines later in hashIndexEntry we compute the KeyString. We should use these to compare instead, as that's much cheaper.



 Comments   
Comment by Githook User [ 19/Jun/17 ]

Author:

{u'username': u'GWlodarek', u'name': u'Gregory Wlodarek', u'email': u'gregory.wlodarek@mongodb.com'}

Message: SERVER-29497 Make validate use KeyString instead of woCompare to improve comparison speed
Branch: master
https://github.com/mongodb/mongo/commit/8b46b0f431fb0d263db6ff1644276ffd02634266

Generated at Thu Feb 08 04:21:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.