1
- ===========
2
- Aggregation
3
- ===========
1
+ ======================
2
+ Aggregation Operations
3
+ ======================
4
4
5
5
.. default-domain:: mongodb
6
6
@@ -21,17 +21,13 @@ results. You can use aggregation operations to:
21
21
22
22
To perform aggregation operations, you can use:
23
23
24
- - :ref:`Aggregation pipelines <aggregation-pipeline-intro>`, which are the
25
- preferred method for performing aggregations.
24
+ - :ref:`Aggregation pipelines <aggregation-pipeline-intro>`, which are
25
+ the preferred method for performing aggregations.
26
26
27
27
- :ref:`Single purpose aggregation methods
28
28
<single-purpose-agg-methods>`, which are simple but lack the
29
29
capabilities of an aggregation pipeline.
30
30
31
- - :ref:`Map-reduce operations <aggregation-map-reduce>`, which are
32
- deprecated starting in MongoDB 5.0. Instead, use an aggregation
33
- pipeline.
34
-
35
31
.. _aggregation-pipeline-intro:
36
32
37
33
Aggregation Pipelines
@@ -46,15 +42,22 @@ Aggregation Pipeline Example
46
42
47
43
For runnable examples containing sample input documents, see
48
44
:ref:`Complete Aggregation Pipeline Examples
49
- <aggregation-pipeline-examples>`.
45
+ <aggregation-pipeline-examples>`.
46
+
47
+ Learn More About Aggregation Pipelines
48
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
49
+
50
+ To learn more about aggregation pipelines, see
51
+ :ref:`aggregation-pipeline`.
50
52
51
53
.. _single-purpose-agg-methods:
52
54
53
55
Single Purpose Aggregation Methods
54
56
----------------------------------
55
57
56
- You can use the following single purpose aggregation methods to
57
- aggregate documents from a single collection:
58
+ The single purpose aggregation methods aggregate documents from a single
59
+ collection. The methods are simple but lack the capabilities of an
60
+ aggregation pipeline.
58
61
59
62
.. list-table::
60
63
:header-rows: 1
@@ -75,39 +78,10 @@ aggregate documents from a single collection:
75
78
- Returns an array of documents that have distinct values for the
76
79
specified field.
77
80
78
- The single purpose aggregation methods are simple but lack the
79
- capabilities of an :ref:`aggregation pipeline
80
- <aggregation-pipeline-intro>`.
81
-
82
- .. _aggregation-map-reduce:
83
-
84
- Map-Reduce
85
- ----------
86
-
87
- .. include:: /includes/fact-use-aggregation-not-map-reduce.rst
88
-
89
- For a feature comparison of aggregation pipelines and map-reduce, see
90
- :doc:`/reference/aggregation-commands-comparison`.
91
-
92
- Learn More
93
- ----------
94
-
95
- To learn more about aggregations, see:
96
-
97
- - :ref:`aggregation-pipeline`
98
-
99
- - :ref:`aggregation-expression-operators`
100
-
101
- - :ref:`aggregation-pipeline-operator-reference`
102
-
103
- - `Practical MongoDB Aggregations
104
- <https://www.practical-mongodb-aggregations.com>`_
105
-
106
-
107
81
.. toctree::
108
82
:titlesonly:
109
83
:hidden:
110
84
111
85
/core/aggregation-pipeline
112
- /core/map-reduce
113
86
/reference/aggregation
87
+ /core/map-reduce
0 commit comments