[SERVER-74772] Make analyzeShardKey command include all records in the monotonicity check Created: 13/Mar/23  Updated: 29/Oct/23  Resolved: 13/Mar/23

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

Type: Bug Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding NYC 2023-03-20
Participants:

 Description   

Due to performance considerations, SERVER-68753 made it such that when multiple record ids have the same shard key value, only the id for one of the records is added to the list of record ids to calculate the coefficient coefficient for. This may be good for performance to some extent since it decreases the number of data points in the correlation coefficient calculation. However, as shown in SERVER-74338, it has a non-negligible impact on the accuracy of the check.  



 Comments   
Comment by Githook User [ 13/Mar/23 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-74772 Make analyzeShardKey command include all records in the monotonicity check
Branch: master
https://github.com/mongodb/mongo/commit/a56ab1d23fb4d14da3ece21570fc77f443aae608

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