File tree Expand file tree Collapse file tree 5 files changed +32
-13
lines changed Expand file tree Collapse file tree 5 files changed +32
-13
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ 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-framework >`
24
+ - :ref:`Aggregation pipelines <aggregation-pipeline-intro >`
25
25
26
26
- :ref:`Single purpose aggregation methods
27
27
<single-purpose-agg-operations>`
28
28
29
29
- :ref:`Map-reduce functions <aggregation-map-reduce>`
30
30
31
- .. _aggregation-framework :
31
+ .. _aggregation-pipeline-intro :
32
32
33
33
Aggregation Pipelines
34
34
---------------------
@@ -85,6 +85,10 @@ pipeline.
85
85
86
86
.. include:: /images/distinct.rst
87
87
88
+ The single purpose aggregation methods are simple but lack the
89
+ capabilities of an :ref:`aggregation pipeline
90
+ <aggregation-pipeline-intro>`.
91
+
88
92
.. _aggregation-map-reduce:
89
93
90
94
Map-Reduce
Original file line number Diff line number Diff line change @@ -379,3 +379,12 @@ Connection Pools
379
379
.. |newversion| replace:: 4.2
380
380
381
381
.. |oldversion| replace:: 4.0
382
+
383
+ Using Aggregation Pipelines with Clusters
384
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
385
+
386
+ For more information on how sharding works with :ref:`aggregations
387
+ <aggregation-pipeline>`, read the sharding chapter in the `Practical
388
+ MongoDB Aggregations
389
+ <https://www.practical-mongodb-aggregations.com/guides/sharding.html>`__
390
+ e-book.
Original file line number Diff line number Diff line change @@ -134,10 +134,10 @@ Alternative to ``$where``
134
134
The query operator :query:`$where` can also be used to specify
135
135
JavaScript expression. However:
136
136
137
- - Starting in MongoDB 3.6, the :query:`$expr` operator allows the use
138
- of :ref:`aggregation expressions <aggregation-framework >` within the
137
+ - The :query:`$expr` operator allows the use of
138
+ :ref:`aggregation expressions <aggregation-expressions >` within the
139
139
query language.
140
-
140
+
141
141
- Starting in MongoDB 4.4, the :expression:`$function` and
142
142
:group:`$accumulator` allows users to define custom aggregation
143
143
expressions in JavaScript if the provided :doc:`pipeline operators
@@ -230,9 +230,8 @@ Example 2: Alternative to ``$where``
230
230
231
231
.. note:: Aggregation Alternatives Preferred over ``$where``
232
232
233
-
234
- Starting in MongoDB 3.6, the :query:`$expr` operator allows the use
235
- of :ref:`aggregation expressions <aggregation-framework>` within the
233
+ The :query:`$expr` operator allows the use of
234
+ :ref:`aggregation expressions <aggregation-expressions>` within the
236
235
query language. And, starting in MongoDB 4.4, the
237
236
:expression:`$function` and :group:`$accumulator` allows users to
238
237
define custom aggregation expressions in JavaScript if the provided
Original file line number Diff line number Diff line change @@ -40,10 +40,9 @@ Definition
40
40
41
41
.. note:: Aggregation Alternatives Preferred
42
42
43
-
44
- Starting in MongoDB 3.6, the :query:`$expr` operator allows the use
45
- of :ref:`aggregation expressions <aggregation-framework>` within the
46
- query language. And, starting in MongoDB 4.4, the
43
+ The :query:`$expr` operator allows the use of
44
+ :ref:`aggregation expressions <aggregation-expressions>` within
45
+ the query language. And, starting in MongoDB 4.4, the
47
46
:expression:`$function` and :group:`$accumulator` allows users to
48
47
define custom aggregation expressions in JavaScript if the provided
49
48
:doc:`pipeline operators </reference/operator/aggregation>` cannot
Original file line number Diff line number Diff line change @@ -382,8 +382,16 @@ available on sharded clusters.
382
382
383
383
.. include:: /includes/extracts/transactions-committed-visibility.rst
384
384
385
+ Additional Information
386
+ ~~~~~~~~~~~~~~~~~~~~~~
385
387
386
- For details, see:
388
+ For more information on how sharding works with
389
+ :doc:`aggregations </aggregation>`, read the sharding
390
+ chapter in the `Practical MongoDB Aggregations
391
+ <https://www.practical-mongodb-aggregations.com/guides/sharding.html>`__
392
+ e-book.
393
+
394
+ See also:
387
395
388
396
- :doc:`/core/transactions`
389
397
- :doc:`/core/transactions-production-consideration`
You can’t perform that action at this time.
0 commit comments