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

Avoid constructing CanonicalQuery twice on mongos

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

      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@mongodb.com Hana Pearlman
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: