File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ Definition
19
19
shape` to remove cached query plans for that shape. Omit the query
20
20
shape to clear all cached query plans.
21
21
22
+ .. |method| replace:: :method:`PlanCache.clear` and
23
+ :method:`PlanCache.clearPlansByQuery` helper methods
24
+ .. include:: /includes/fact-dbcommand-tip
25
+
26
+
22
27
Syntax
23
28
------
24
29
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ Definition
17
17
18
18
Removes all cached query plans for a collection.
19
19
20
+ .. |dbcommand| replace:: :dbcommand:`planCacheClear` command
21
+ .. include:: /includes/fact-mongosh-shell-method-alt
22
+
20
23
The method is only available from the :method:`plan cache object
21
24
<db.collection.getPlanCache()>` of a specific collection; i.e.
22
25
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ Definition
17
17
18
18
Clears the cached query plans for the specified :term:`query shape`.
19
19
20
+ .. |dbcommand| replace:: :dbcommand:`planCacheClear` command
21
+ .. include:: /includes/fact-mongosh-shell-method-alt
22
+
20
23
The method is only available from the :method:`plan cache object
21
24
<db.collection.getPlanCache()>` of a specific collection; i.e.
22
25
You can’t perform that action at this time.
0 commit comments