Skip to content

Commit 4e22701

Browse files
authored
DOCSP-27749 Adds interlinks for mongosh Query Plan Cache methods (#2529) (#2546)
* DOCSP-27749 Adds interlinks for mongosh Query Plan Cache methods (#2529) * Fixes build issue * Fixes build issue
1 parent 4af8e7d commit 4e22701

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

source/reference/command/planCacheClear.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ 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.rst
25+
2226
The command has the following syntax:
2327

2428
.. code-block:: javascript

source/reference/method/PlanCache.clear.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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-mongo-shell-method-alt.rst
22+
2023
The method is only available from the :method:`plan cache object
2124
<db.collection.getPlanCache()>` of a specific collection; i.e.
2225

source/reference/method/PlanCache.clearPlansByQuery.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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-mongo-shell-method-alt.rst
22+
2023
The method is only available from the :method:`plan cache object
2124
<db.collection.getPlanCache()>` of a specific collection; i.e.
2225

0 commit comments

Comments
 (0)