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

Fetch the db metadata during the mongos startup

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing

      During the mongos startup, we perform a catalog cache load of all the collection's routing tables as an optimization to avoid the refresh delay on the first queries targeting this mongos.

      However, this doesn't include the loading of the database metadata (see SERVER-86671 for further detail), which is needed to target an unsharded untracked collection.

      Since the mongos is already being proactive in fetching the routing information, we should also include a call to the getDatabaseWithRefresh to precache the db metadata as well.

            Assignee:
            Unassigned Unassigned
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: