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

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

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v5.0, v4.4, v4.2, v4.0
    • Sprint:
      Sharding EMEA 2021-06-28

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: