-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework, Performance, Querying
-
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.
- is related to
-
SERVER-45406 Provide ExpressionContext in PlanStage layer
- Closed