Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-78105

Optimize the aggregation pipeline used by analyzeShardKey command to calculate cardinality and frequency

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v7.0
    • Sharding NYC 2023-06-26

      According to the experiments in SERVER-68763, replacing the $setWindowFields+$limit stages with a $group stage with $topN decreased the runtime of the step to calculate the cardinality and frequency for a non-unique shard key index by about 20%.

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: