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

Implement a structure to keep metrics in queryStats

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: 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

      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.

            Assignee:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: