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

Compute QueryShapeHash only in cases when QuerySettings are set for a given collection

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Query Execution
    • Fully Compatible
    • QE 2023-10-16, QE 2023-10-30, QE 2023-11-13

      In order to perform QuerySettings lookup, QueryShapeHash is required.

      In situation when $queryStats is off, QueryShapeHash has to be computed.

      Currently we avoid computing QueryShapeHash in situation, when no QuerySettings are set for the given tenant. 

      As part of this ticket we would need to modify the QuerySettingsManager to store QuerySettings in such a way, that we could avoid computing QueryShapeHash in situations when no QuerySettings are set for the given collection. This way we would reduce the performance impact of QuerySettings lookup even further

            Assignee:
            catalin.sumanaru@mongodb.com Catalin Sumanaru
            Reporter:
            denis.grebennicov@mongodb.com Denis Grebennicov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: