You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/50-aggregation/1-aggregation-intro.mdx
+9-9
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
1
# 📘 Intro to Aggregation Pipelines
2
2
3
-
### What is an Aggregation Pipeline?
3
+
### What is an aggregation pipeline?
4
4
5
5
The Aggregation Pipeline in MongoDB is a powerful framework for data processing and transformation. It allows you to perform operations like filtering, grouping, sorting, and reshaping data, similar to SQL queries but in a more flexible and scalable way.
6
6
7
7
In SQL, you achieve complex queries using `SELECT`, `WHERE`, `GROUP BY`, `HAVING`, and `JOIN` statements. In MongoDB, aggregation pipelines allow you to achieve the same results by passing data through multiple **stages**, each performing a specific transformation.
8
8
9
9
---
10
10
11
-
### Why Use Aggregation?
11
+
### Why use aggregation?
12
12
13
-
-**Efficient Processing:** Aggregation pipelines process data within the database engine, reducing the need for client-side computations.
14
-
-**Scalability:**Designed to handle large datasets efficiently.
15
-
-**Powerful Transformations:**Enables complex data transformations, similar to `GROUP BY`, `JOIN`, and computed fields in SQL.
13
+
-**Efficient processing:** Aggregation pipelines process data within the database engine, reducing the need for client-side computations.
14
+
-**Scalability:**They're designed to handle large datasets efficiently.
15
+
-**Powerful transformations:**They enable complex data transformations, similar to `GROUP BY`, `JOIN`, and computed fields in SQL.
16
16
17
17
---
18
18
@@ -29,7 +29,7 @@ In SQL, you achieve complex queries using `SELECT`, `WHERE`, `GROUP BY`, `HAVING
29
29
30
30
---
31
31
32
-
### Basic Structure of an Aggregation Pipeline
32
+
### Basic structure of an aggregation pipeline
33
33
34
34
An aggregation pipeline consists of multiple **stages**, where each stage processes and transforms the data before passing it to the next stage.
35
35
@@ -46,9 +46,9 @@ Each stage uses a specific **operator** (like `$match`, `$project`, or `$group`)
0 commit comments