Aggregation Framework
Sign in to follow topics
Featured
Article
The cost of not knowing MongoDB (V5RX) - Part 2
Discover the power of MongoDB schema optimization in the second part of The Cost of Not Knowing MongoDB series. This deep dive explores the impact of different data modeling approaches, focusing on the Bucket Pattern and Computed Pattern to enhance query performance and storage efficiency. Learn how grouping data by month or quarter can significantly reduce index size and improve read operations, while pre-computing aggregations can optimize reporting. With real-world benchmarks, load test results, and practical TypeScript code, this guide demonstrates how strategic schema design can maximize MongoDB’s potential.Jan 29, 2025 | 26 min read
All Aggregation Framework Content
- Latest
- Highest Rated
Article
Wordle Solving Using MongoDB Query API Operators
Let’s learn a few MongoDB Query API operators while solving WordleJun 09, 2023
News & Announcements
Introducing a New MongoDB Aggregations Book
Learn more about our newest book, Practical MongoDB Aggregations, by Paul Done.Jun 09, 2023
Article
Aggregation Pipeline: Applying Benford's Law to COVID-19 Data
Using the MongoDB Aggregation Pipeline to apply Benford's law on the COVID-19 date set from Johns Hopkins University.Jun 09, 2023
(+1)
Tutorial
Joining Collections in MongoDB with .NET Core and an Aggregation Pipeline
Learn how to use the MongoDB aggregation pipeline to create stages that will join documents and collections in a .NET Core application.Jun 09, 2023
Tutorial
How to Use Custom Aggregation Expressions in MongoDB 4.4
Learn how to use custom aggregation expressions in your MongoDB aggregation pipeline operations.Jun 09, 2023
Quickstart
Introduction to the MongoDB Aggregation Framework
Learn about MongoDB's aggregation framework and aggregation operators.Jun 09, 2023
Tutorial
MongoDB Aggregation Pipeline Queries vs SQL Queries
This is an overview of common SQL aggregation terms, functions, and concepts and the corresponding MongoDB aggregation operators.Jun 09, 2023
Video
How to Build an Aggregation Pipeline in MongoDB Atlas
✅ Sign-up for a free cluster at: https://mdb.link/free-7F0a1_ZLepI ✅ Get help on our Community Forums: https://mdb.link/community-7F0a1_ZLepI Having trouble creating aggregation pipelines for complex MongoDB queries? In this video, Nic Raboy demonstrates how to use the MongoDB Atlas aggregation pipeline builder, a graphical method for constructing and testing each stage of an aggregation pipeline. Docs → https://trymongodb.com/3FxVXGt Connect with Nic on Twitter: https://twitter.com/nraboy ⏱️ Timestamps ⏱️ 00:00:00 - Intro 00:00:16 - MongoDB Atlas 00:01:12 - Aggregation Pipeline Builder Overview 00:01:33 - Building a Complex Multi-Stage Aggregation Pipeline 00:08:48 - Outro — Subscribe to MongoDB ➡️ https://bit.ly/3bpg1Z1 #mongodb #database #tutorialNov 01, 2022
Video
MongoDB & Node.js: Aggregation & Data Analysis (Part 2 of 4)
✅ Sign-up for a free cluster at: https://mdb.link/free-iz37fDe1XoM ✅ Get help on our Community Forums: https://mdb.link/community-iz37fDe1XoM When you want to analyze data stored in MongoDB, you can use MongoDB's powerful aggregation framework to do so. In part two of this quick start tutorial for beginners, Lauren Schaefer provides a high-level overview of the aggregation framework and demonstrates how to use it in a Node.js script. She explains how to use aggregate() to analyze data. Chapters: 00:00 Intro 00:45 What is the aggregation framework? 02:45 Create an aggregation pipeline in Atlas 06:45 Executing an aggregation pipeline in Node.js 11:07 Wrapping up Other videos in this tutorial series: Part 1: https://youtu.be/fbYExfeFsI0 Links Lauren mentions in the video: Lauren's blog post: Aggregation Framework with Node.js Tutorial https://developer.mongodb.com/quickstart/node-aggregation-framework Lauren's GitHub repo with the code from this video https://github.com/mongodb-developer/nodejs-quickstart/blob/master/aggregation.js Node.js & MongoDB Starter Template File https://github.com/mongodb-developer/nodejs-quickstart/blob/master/template.js Free MongoDB University Course: M121 The MongoDB Aggregation Framework https://university.mongodb.com/courses/M121/about Connect with Lauren: Twitter: https://twitter.com/lauren_schaefer TikTok: https://tiktok.com/@lauren_schaefer LinkedIn: https://www.linkedin.com/in/laurenjan... MongoDB Community: https://developer.mongodb.com/community/forums/t/hey-friends-im-lauren/168/ Subscribe to MongoDB ►►► https://bit.ly/3bpg1Z1 Connect with MongoDB: Website: https://bit.ly/2LjtNBZ Twitter: https://bit.ly/3fH87gR Facebook: https://bit.ly/3fEaIsd Linkedin: https://bit.ly/2SY9w90 Instagram: https://bit.ly/3bn9bDv Community Forums: https://bit.ly/2I8VCi5 TikTok: https://bit.ly/3fHoqdJMay 07, 2021