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

The new '_configsvrMergeChunks' path is more expensive than the old one

    • Fully Compatible
    • ALL
    • v5.0, v4.4, v4.2, v4.0
    • Sharding EMEA 2021-06-28

      As part of SERVER-56786 we changed the merge chunks commit path on the config server to iterate the chunks using this query. However, this query doesn't include the ns field and because of this it becomes a collection scan.

      The query should be changed to (1) include the ns, (2) exclude the epoch and (3) exclude the max value and substitute it with $lt on the min field. That way it can be satisfied from the ns_1_shard_1_min_1 index directly instead of having to inspect the document.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: