We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20e2eec commit 6dfe71cCopy full SHA for 6dfe71c
source/tutorial/equality-sort-range-rule.txt
@@ -141,14 +141,14 @@ are sorted by model:
141
db.cars.find(
142
{
143
manufacturer: 'Ford',
144
- cost: { $gt: 10000 }
+ cost: { $gt: 15000 }
145
} ).sort( { model: 1 } )
146
147
148
The query contains all the elements of the ESR Rule:
149
150
- ``manufacturer: 'Ford'`` is an equality based match
151
-- ``cost: { $gt: 10000 }`` is a range based match, and
+- ``cost: { $gt: 15000 }`` is a range based match, and
152
- ``model`` is used for sorting
153
154
Following the ESR rule, the optimal index for the example query is:
0 commit comments