Make analyzeShardKey command include all records in the monotonicity check

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Sharding NYC 2023-03-20
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.  

            Assignee:
            Cheahuychou Mao
            Reporter:
            Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: