@@ -67,7 +67,7 @@ You can use aggregation operations to perform the following actions:
67
67
Limitations
68
68
~~~~~~~~~~~
69
69
70
- Keep the following limitations in mind when using aggregation operations:
70
+ Consider the following limitations when performing aggregation operations:
71
71
72
72
- Returned documents cannot violate the
73
73
:manual:`BSON document size limit </reference/limits/#mongodb-limit-BSON-Document-Size>`
@@ -76,11 +76,11 @@ Keep the following limitations in mind when using aggregation operations:
76
76
limit by creating an options array that sets the ``allowDiskUse`` option to ``true``
77
77
and passing the array to the ``MongoDB\Collection::aggregate()`` method.
78
78
79
- .. important:: $graphLookup Exception
79
+ .. important:: $graphLookup Exception
80
80
81
- The :manual:`$graphLookup
82
- </reference/operator/aggregation/graphLookup/>` stage has a strict
83
- memory limit of 100 megabytes and ignores the ``allowDiskUse`` option.
81
+ The :manual:`$graphLookup
82
+ </reference/operator/aggregation/graphLookup/>` stage has a strict
83
+ memory limit of 100 megabytes and ignores the ``allowDiskUse`` option.
84
84
85
85
.. _php-aggregation-example:
86
86
@@ -118,7 +118,7 @@ of New York. To do so, it uses an aggregation pipeline that contains the followi
118
118
119
119
.. output::
120
120
:visible: false
121
-
121
+
122
122
{"_id":"Brooklyn","count":173}
123
123
{"_id":"Queens","count":204}
124
124
{"_id":"Bronx","count":71}
@@ -132,13 +132,13 @@ Explain an Aggregation
132
132
To view information about how MongoDB executes your operation, you can
133
133
instruct the MongoDB query planner to **explain** it. When MongoDB explains
134
134
an operation, it returns **execution plans** and performance statistics.
135
- An execution plan is a potential way MongoDB can complete an operation.
135
+ An execution plan is a potential way in which MongoDB can complete an operation.
136
136
When you instruct MongoDB to explain an operation, it returns both the
137
137
plan MongoDB executed and any rejected execution plans.
138
138
139
139
To explain an aggregation operation, run the ``explain`` database command by passing
140
- the command information to the ``MongoDB\Database::command()`` method. You must set the
141
- ``aggregate``, ``pipeline``, and ``cursor`` fields of the ``explain`` command document
140
+ the command information to the ``MongoDB\Database::command()`` method. You must specify the
141
+ ``aggregate``, ``pipeline``, and ``cursor`` fields in the ``explain`` command document
142
142
to explain the aggregation.
143
143
144
144
The following example instructs MongoDB to explain the aggregation operation from the
@@ -169,18 +169,21 @@ Additional Information
169
169
MongoDB Server Manual
170
170
~~~~~~~~~~~~~~~~~~~~~
171
171
172
- To view a full list of expression operators, see :manual:`Aggregation
173
- Operators. </reference/operator/aggregation/>`
172
+ To learn more about the topics discussed in this guide, see the following
173
+ pages in the {+mdb-server+} manual:
174
+
175
+ - To view a full list of expression operators, see :manual:`Aggregation
176
+ Operators </reference/operator/aggregation/>`.
174
177
175
- To learn about assembling an aggregation pipeline and view examples, see
176
- :manual:`Aggregation Pipeline. </core/aggregation-pipeline/>`
178
+ - To learn about assembling an aggregation pipeline and to view examples, see
179
+ :manual:`Aggregation Pipeline </core/aggregation-pipeline/>`.
177
180
178
- To learn more about creating pipeline stages, see :manual:`Aggregation
179
- Stages. </reference/operator/aggregation-pipeline/>`
181
+ - To learn more about creating pipeline stages, see :manual:`Aggregation
182
+ Stages </reference/operator/aggregation-pipeline/>`.
180
183
181
- To learn more about explaining MongoDB operations, see
182
- :manual:`Explain Output </reference/explain-results/>` and
183
- :manual:`Query Plans. </core/query-plans/>`
184
+ - To learn more about explaining MongoDB operations, see
185
+ :manual:`Explain Output </reference/explain-results/>` and
186
+ :manual:`Query Plans </core/query-plans/>`.
184
187
185
188
.. TODO:
186
189
Aggregation Tutorials
0 commit comments