This version will reach end of life on Feb 2018. To upgrade, go to the Learn more about upgrading your version of MongoDB.

Aggregation Mechanics

This section describes behaviors and limitations for the various aggregation modalities.

Aggregation Pipeline Optimization
Details the internal optimization of certain pipeline sequence.
Aggregation Pipeline Limits
Presents limitations on aggregation pipeline operations.
Aggregation Pipeline and Sharded Collections
Mechanics of aggregation pipeline operations on sharded collections.
Map-Reduce and Sharded Collections
Mechanics of map-reduce operation with sharded collections.
Map Reduce Concurrency
Details the locks taken during map-reduce operations.