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
1919 shape` to remove cached query plans for that shape. Omit the query
2020 shape to clear all cached query plans.
2121
22+ .. |method| replace:: :method:`PlanCache.clear` and
23+ :method:`PlanCache.clearPlansByQuery` helper methods
24+ .. include:: /includes/fact-dbcommand-tip
25+
26+
2227Syntax
2328------
2429
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ Definition
1717
1818 Removes all cached query plans for a collection.
1919
20+ .. |dbcommand| replace:: :dbcommand:`planCacheClear` command
21+ .. include:: /includes/fact-mongosh-shell-method-alt
22+
2023 The method is only available from the :method:`plan cache object
2124 <db.collection.getPlanCache()>` of a specific collection; i.e.
2225
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ Definition
1717
1818 Clears the cached query plans for the specified :term:`query shape`.
1919
20+ .. |dbcommand| replace:: :dbcommand:`planCacheClear` command
21+ .. include:: /includes/fact-mongosh-shell-method-alt
22+
2023 The method is only available from the :method:`plan cache object
2124 <db.collection.getPlanCache()>` of a specific collection; i.e.
2225
You can’t perform that action at this time.
0 commit comments