@@ -9,7 +9,7 @@ Introduction
9
9
10
10
In addition to the :doc: `MongoDB Query Operators
11
11
</reference/operators>`, there are a number of "meta" operators that
12
- you may use to modify the output or behavior or output of the
12
+ you may use to modify the output or behavior of a
13
13
query. Specify these modifiers to a :func: `find() ` query, in the
14
14
following form (for the :program: `mongo ` shell):
15
15
@@ -18,7 +18,7 @@ following form (for the :program:`mongo` shell):
18
18
db .collection .find ( { [QUERY ] } )._addSpecial ( [MODIFER ] )
19
19
20
20
Here, the query specified by "``[QUERY] ``" runs on the collection
21
- named ``collection `` while the operation specified by the
21
+ named ``collection `` with the operation specified by the
22
22
``[MODIFER] `` The results are then processed by a modifier expression
23
23
selected from the following list. Many of the operators have
24
24
corresponding :doc: `methods in the shell </reference/javascript >`. For
@@ -90,6 +90,8 @@ Modifiers
90
90
Use operation alone or in conjunction with :operator: `$max `
91
91
to limit results to a specific range.
92
92
93
+ TODO This should be avoided unless necessary, use $gte instead.
94
+
93
95
.. operator :: $max
94
96
95
97
Specify a :operator: `$max ` value to specify an upper boundary for
@@ -109,6 +111,8 @@ Modifiers
109
111
Use operation alone or in conjunction with :operator: `$min `
110
112
to limit results to a specific range.
111
113
114
+ TODO This should be avoided unless necessary, use $lt instead.
115
+
112
116
.. operator :: $query
113
117
114
118
The :operator: `$query ` operator provides an interface to describe
@@ -148,7 +152,7 @@ Modifiers
148
152
value (e.g. "``1 ``") to sort in ascending order.
149
153
150
154
Unless you have a index for the specified key pattern, use
151
- :operator: `$orderby ` in conjunction with :operator: `$maxScan ` and
155
+ :operator: `$orderby ` in conjunction with :operator: `$maxScan ` and/or
152
156
:func: `limit() ` to avoid requiring MongoDB to perform a large
153
157
in-memory sort. :func: `limit() ` increases the speed and reduce
154
158
the amount of memory required to return this query by way of an
@@ -168,6 +172,8 @@ Modifiers
168
172
"``collection ``" using the index on the "``_id ``" field. Use this
169
173
operator to prevent MongoDB from performing inefficient queries.
170
174
175
+ TODO - won't necessarily prevent an inefficient query, just lets you pick index manually.
176
+
171
177
.. operator :: $explain
172
178
173
179
Use the :operator: `$explain ` operator to return a :term: `JSON
@@ -218,3 +224,5 @@ Modifiers
218
224
219
225
All queries with responses less than 1 megabyte are effectively
220
226
snapshotted.
227
+
228
+ TODO I don't think that's right about < 1 mb
0 commit comments