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

Remove call to getAllChunkRanges as part of getShardIdsForRange

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • CAR Team 2024-10-28
    • 1

      This call is copying the entire chunk map which can contain thousands or even millions of chunks. This can take a very long time, and so having this as part of the getShardIdsForRange function is very dangerous as it can introduce huge performance hits if used incorrectly.

      This is also used in very few places for analyzeShardKey, so we should separate this logic out to make the router paths more resilient and less risky.

            Assignee:
            igor.praznik@mongodb.com Igor Praznik
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: