Report execution stats for $exchange in sharded aggregation explains

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • None
    • Query Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, only the $cursor stage reports any interesting execution statistics when explaning an aggregation at verbosity level "executionStats". Because of the complexity of $exchange, it would be interesting to expose more runtime stats.

      Some ideas of what might be interesting off the top of my head:

      • number of total calls to DocumentSourceExchange::getNext()
      • number of total yields
      • number of times each consumer blocks on empty buffer
      • number of times each consumer thread fills the buffers
      • the number of times buffer N is filled to capacity

              Assignee:
              [DO NOT USE] Backlog - Query Execution
              Reporter:
              Kyle Suarez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: