MongoDB Aggregation Framework Stages and Pipelining

Forrest Lymburner


We’re happy to announce that our new whitepaper MongoDB Aggregation Framework Stages and Pipelinings is now available to download for free!

In this whitepaper, we deep-dive into MongoDB’s Aggregation Framework and look into the different stages of the Aggregation Pipeline. We also look at how we make use of these stages in an aggregation process and then look at the operators that can assist in the analysis process of input documents. Finally, we also compare the aggregation process in MongoDB with SQL, as well as the differences between the aggregation process and MapReduce in MongoDB.

Topics included in this whitepaper are…

  • What is the Aggregation Framework?
  • Aggregation Pipeline
    • Basic Stages of Aggregation Pipeline
  • Aggregation Process
  • Accumulator Operators
  • Similarity of the Aggregation Process in MongoDB with SQL
  • Aggregation Pipeline Optimization
    • Projection Optimization
    • Pipeline Sequence Optimization
  • MapReduce in MongoDB
    • MapReduce JavaScript Functions
    • Incremental MapReduce
  • Comparison Between MapReduce and Aggregation Pipeline in MongoDB
  • Summary

Download the whitepaper today!

About the Author

Onyancha Brian Henry, Guest Writer

Onyancha Brian Henry is a guest writer for Severalnines. He is a hybrid App & Web Developer and Graphics Designer. Based in Kenya, he primaryily uses MongoDB for storage for his App and web data, all in realtime. His success in database management has been driven by staying up-to-date with upcoming trends and emerging database features. Brian has developed a real passion for Databases in the past 5 years and the experience he has gained from the database world always impresses the clients.

About Severalnines

Severalnines provides automation and management software for database clusters. We help companies deploy their databases in any environment, and manage all operational aspects to achieve high-scale availability.

Severalnines’ products are used by developers and administrators of all skills levels to provide the full ‘deploy, manage, monitor, scale’ database cycle, thus freeing them from the complexity and learning curves that are typically associated with highly available database clusters. Severalnines is often called the “anti-startup” as it is entirely self-funded by its founders. The company has enabled over 32,000 deployments to date via its popular product ClusterControl. Currently counting BT, Orange, Cisco, CNRS, Technicolor, AVG, Ping Identity and Paytrail as customers. Severalnines is a private company headquartered in Stockholm, Sweden with offices in Singapore, Japan and the United States. To see who is using Severalnines today visit,

Subscribe below to be notified of fresh posts