Avoid constructing CanonicalQuery twice on mongos

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Running a find on a sharded cluster requests in parsing the same BSON and constructing the same CanonicalQuery twice.

      1. ClusterFindCmdBase::run()
      2. getShardIdsForQuery()

      We should avoid this duplicate work.

            Assignee:
            Hana Pearlman
            Reporter:
            Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: