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

Avoid CatalogCache lookup in setAllowMigrationsAndBumpOneChunk

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • 1

      In setAllowMigrationsAndBumpOneChunk we are forcing a CatalogCache refresh, and then we use the ChunkManager just to check if the collection is sharded and its UUID. Thus, we don't really need to fetch/refresh the entire routing table. Instead, we could use the ShadingCatalogClient::getCollection() to more efficiently retrieve collection metadata.

            Assignee:
            Unassigned Unassigned
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: