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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2023-10-16, QE 2023-10-30, QE 2023-11-13

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: