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.  Based in Kenya, he is a web developer and graphic designer with great interest in upcoming trends in web development.  Brian uses MongoDB regularly with his freelance clients. His passion is to impress the client as a key to his success.

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,

The only management system you’ll ever need to take control of your open source database infrastructure.