Aggregations should be counted as Query ops, not Command ops

XMLWordPrintableJSON

    • Query Execution
    • Fully Compatible
    • QE 2023-05-15, QE 2023-05-29, QE 2023-06-12, QE 2023-06-26, QE 2023-08-07
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, only the official Find Command increments the "Query" OpCounter from db/stats/counters.h. Any use of the aggregation pipeline command is only counted as a "Command", lumped together with all other operations that aren't Query, writes, or getmores.
      Since it would be more useful to have all commands that perform query-like operations be counted as queries, we should start counting aggregations as queries.
      (Note that we already count get-mores issued on cursors sourced either by aggregation or by finds, without distinction.)

            Assignee:
            Foteini Alvanaki
            Reporter:
            Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: