- 
    Type:Improvement 
- 
    Resolution: Unresolved
- 
    Priority:Major - P3 
- 
    None
- 
    Affects Version/s: None
- 
    Component/s: None
- 
        Query Execution
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
I've noticed that for sharded collections, we report executionStats under the shards field for each sub-pipeline that gets executed on the individual shards. But we don't have any information about what is happening on mongos during the $mergeCursors or the stages after the $mergeCursors. For example, a $group or a $sort could spend a significant amount of time after the $mergeCursors and we provide no information about that in the explain. There could also be a network latency between the mongos and mongod communication that would be easy to identify if we report executionStats on mongos.
- is duplicated by
- 
                    SERVER-82206 Provide explain() for the merge part of a sharded aggregation pipeline -         
- Closed
 
-         
- related to
- 
                    SERVER-105958 Add memory tracking test for sharded $setWindowFields -         
- Closed
 
-