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

Make tracking of timing information in DocumentSource opt-in

    • Fully Compatible
    • Query 2019-12-30, Query 2020-01-13

      The construction and destruction of ScopedTimer proved to be a noticeable cost when we added stats tracking to agg in SERVER-42584. Somewhere around a 3% overhead. This may also be able to be recovered within the PlanStage layer if we make the timing information of the execution stats be opt-in, and only pay for the cost when running an explain.

      For the PlanStage layer, we record statistics to the profiler and include timing information. It appears that we will do this for the find command (and maybe others?) but not for the aggregate command.

            Assignee:
            ian.boros@mongodb.com Ian Boros
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: