1- ===========
2- Aggregation
3- ===========
1+ ======================
2+ Aggregation Operations
3+ ======================
44
55.. default-domain:: mongodb
66
@@ -21,17 +21,13 @@ results. You can use aggregation operations to:
2121
2222To perform aggregation operations, you can use:
2323
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.
2626
2727- :ref:`Single purpose aggregation methods
2828 <single-purpose-agg-methods>`, which are simple but lack the
2929 capabilities of an aggregation pipeline.
3030
31- - :ref:`Map-reduce operations <aggregation-map-reduce>`, which are
32- deprecated starting in MongoDB 5.0. Instead, use an aggregation
33- pipeline.
34-
3531.. _aggregation-pipeline-intro:
3632
3733Aggregation Pipelines
@@ -46,15 +42,22 @@ Aggregation Pipeline Example
4642
4743For runnable examples containing sample input documents, see
4844: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`.
5052
5153.. _single-purpose-agg-methods:
5254
5355Single Purpose Aggregation Methods
5456----------------------------------
5557
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.
5861
5962.. list-table::
6063 :header-rows: 1
@@ -75,39 +78,10 @@ aggregate documents from a single collection:
7578 - Returns an array of documents that have distinct values for the
7679 specified field.
7780
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-
10781.. toctree::
10882 :titlesonly:
10983 :hidden:
11084
11185 /core/aggregation-pipeline
112- /core/map-reduce
11386 /reference/aggregation
87+ /core/map-reduce
0 commit comments