Skip to content

Commit 7bf7abf

Browse files
steverenkay-kim
authored andcommitted
DOCS-11025: added a timestamp to plan cache entries
1 parent 8b552fe commit 7bf7abf

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

source/includes/ref-toc-method-plan-cache.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: ":method:`db.collection.getPlanCache()`"
22
file: /reference/method/db.collection.getPlanCache
33
description: |
44
Returns an interface to access the query plan cache object and
5-
associated PlanCache methods for a collection."
5+
associated PlanCache methods for a collection.
66
---
77
name: ":method:`PlanCache.clear()`"
88
file: /reference/method/PlanCache.clear

source/reference/command/planCacheListPlans.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ Definition
4848
To see the query shapes for which cached query plans exist, use the
4949
:dbcommand:`planCacheListQueryShapes` command.
5050

51+
.. versionadded:: 3.6
52+
53+
The :dbcommand:`planCacheListPlans` database command returns the
54+
same output as the :method:`PlanCache.getPlansByQuery()` method.
55+
5156
Required Access
5257
---------------
5358

source/reference/method/PlanCache.getPlansByQuery.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ Definition
3737
To see the query shapes for which cached query plans exist, use the
3838
:method:`PlanCache.listQueryShapes()` method.
3939

40+
.. versionadded:: 3.6
41+
42+
The :method:`PlanCache.getPlansByQuery()` method returns the same
43+
output as the :dbcommand:`planCacheListPlans` database command.
44+
4045
Required Access
4146
---------------
4247

source/release-notes/3.6.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,11 @@ MongoDB 3.6 includes the following enhancements:
629629
of a database, which indicates the maximum number of write operations
630630
permitted in a write batch, raises from ``1,000`` to ``100,000``.
631631

632+
- The :dbcommand:`planCacheListPlans` database command produces the same
633+
output as the :method:`PlanCache.getPlansByQuery()` shell method. The
634+
output from both operations now includes a timestamp for when
635+
the plans were generated.
636+
632637
Changes Affecting Compatibility
633638
-------------------------------
634639

0 commit comments

Comments
 (0)