Prevent CollectionRoutingInfoTargeter from iterating all chunk ranges during update and delete

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.5, 7.0.18
    • Affects Version/s: 7.0.0, 8.1.0-rc0, 8.0.0
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.0, v7.0
    • Cluster Scalability 2024-10-14
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The _targetQuery function always passes in a valid QueryTargetingInfo object. This means we are always passing a valid set to getShardIdsForRange and whenever we target all shard ids, we will insert every chunk into an ordered set.

      The _targetQuery function should instead pass a nullptr if chunkRanges is also nullptr to skip this work in cases where its result won't even be used.

            Assignee:
            Israel Hsu (Inactive)
            Reporter:
            Allison Easton
            Votes:
            1 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: