Implement a structure to keep metrics in queryStats

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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 (Inactive)
            Reporter:
            Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: