Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3135

Investigate changes in SERVER-66495: Aggregations should be counted as Query ops, not Command ops

    XMLWordPrintable

Details

    • Investigation
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • No versions
    • None
    • None

    Description

      Original Downstream Change Summary

      If the query team were to make this change, it would change a longstanding meaning in the server status counters and would potentially affect how downstream teams do their tracking. If this would negatively affect a downstream team, please comment on SERVER-66495 or reach out to the query team in #query-execution.

      Description of Linked Ticket

      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

              Unassigned Unassigned
              backlog-server-pm Backlog - Core Eng Program Management Team
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: