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

Aggregations should be counted as Query ops, not Command ops

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • None
    • Query Execution
    • QE 2023-02-06, QE 2023-02-20, QE 2023-03-06, QE 2023-03-20, QE 2023-04-03

    Description

      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.)

      Attachments

        Issue Links

          Activity

            People

              backlog-query-execution Backlog - Query Execution
              milkie@mongodb.com Eric Milkie
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated: