@@ -16,7 +16,7 @@ Query Plans
16
16
17
17
.. TODO Consider moving this to the mechanics of the index section
18
18
19
- For a query, the MongoDB query optimizer chooses and caches the most
19
+ For a query, the MongoDB query planner chooses and caches the most
20
20
efficient query plan given the available indexes. The evaluation of the
21
21
most efficient query plan is based on the number of "work units"
22
22
(``works``) performed by the query execution plan when the query planner
@@ -237,10 +237,10 @@ Index Filters
237
237
-------------
238
238
239
239
Index filters are set with the :dbcommand:`planCacheSetFilter` command
240
- and determine which indexes the optimizer evaluates for a :term:`query
240
+ and determine which indexes the planner evaluates for a :term:`query
241
241
shape`. A query shape consists of a combination of query, sort, and
242
242
projection specifications. If an index filter exists for a given query
243
- shape, the optimizer only considers those indexes specified in the
243
+ shape, the planner only considers those indexes specified in the
244
244
filter.
245
245
246
246
When an index filter exists for the query shape, MongoDB ignores the
@@ -249,15 +249,15 @@ filter for a query shape, check the :data:`~explain.queryPlanner.indexFilterSet`
249
249
field of either the :method:`db.collection.explain()` or the
250
250
:method:`cursor.explain()` method.
251
251
252
- Index filters only affect which indexes the optimizer evaluates; the
253
- optimizer may still select the collection scan as the winning plan for
252
+ Index filters only affect which indexes the planner evaluates; the
253
+ planner may still select the collection scan as the winning plan for
254
254
a given query shape.
255
255
256
256
Index filters exist for the duration of the server process and do not
257
257
persist after shutdown. MongoDB also provides a command to manually remove
258
258
filters.
259
259
260
- Because index filters override the expected behavior of the optimizer
260
+ Because index filters override the expected behavior of the planner
261
261
as well as the :method:`~cursor.hint()` method, use index filters
262
262
sparingly.
263
263
0 commit comments