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

Implement a structure to keep metrics in queryStats

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • None
    • None
    • Fully Compatible
    • QO 2023-10-16, QO 2023-10-30, QO 2023-11-13, QO 2023-11-27, QO 2023-12-11, QO 2023-12-25
    • 165

    Description

      The queryStats in memory structure need not allocate memory for the structures that are not used. Since optimizer metrics collection in queryStats is not enabled by default the optimizer will not allocate the memory for those unless internalCollectQueryOptimizerMetrics is set.
      Instead QueryStatsEntry will have a pointer to QueryOptimizerMetrics which will be allocated only if internalCollectQueryOptimizerMetrics is set; QueryOptimizerMetrics in turn is an unordered_map<std::string, OptimizerMetricsBucket>. The query key in the map encodes the properties of the collected data, such as “cqf-collscan_only” etc.

      Attachments

        Activity

          People

            misha.tyulenev@mongodb.com Misha Tyulenev
            misha.tyulenev@mongodb.com Misha Tyulenev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: