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

Report execution stats for $exchange in sharded aggregation explains

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

      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:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: