Skip to content

DOCS-11025: added a timestamp to plan cache entries #3128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/includes/ref-toc-method-plan-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ":method:`db.collection.getPlanCache()`"
file: /reference/method/db.collection.getPlanCache
description: |
Returns an interface to access the query plan cache object and
associated PlanCache methods for a collection."
associated PlanCache methods for a collection.
---
name: ":method:`PlanCache.clear()`"
file: /reference/method/PlanCache.clear
Expand Down
5 changes: 5 additions & 0 deletions source/reference/command/planCacheListPlans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ Definition
To see the query shapes for which cached query plans exist, use the
:dbcommand:`planCacheListQueryShapes` command.

.. versionadded:: 3.6

The :dbcommand:`planCacheListPlans` database command returns the
same output as the :method:`PlanCache.getPlansByQuery()` method.

Required Access
---------------

Expand Down
5 changes: 5 additions & 0 deletions source/reference/method/PlanCache.getPlansByQuery.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ Definition
To see the query shapes for which cached query plans exist, use the
:method:`PlanCache.listQueryShapes()` method.

.. versionadded:: 3.6

The :method:`PlanCache.getPlansByQuery()` method returns the same
output as the :dbcommand:`planCacheListPlans` database command.

Required Access
---------------

Expand Down
5 changes: 5 additions & 0 deletions source/release-notes/3.6.txt
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,11 @@ MongoDB 3.6 includes the following enhancements:
of a database, which indicates the maximum number of write operations
permitted in a write batch, raises from ``1,000`` to ``100,000``.

- The :dbcommand:`planCacheListPlans` database command produces the same
output as the :method:`PlanCache.getPlansByQuery()` shell method. The
output from both operations now includes a timestamp for when
the plans were generated.

Changes Affecting Compatibility
-------------------------------

Expand Down