Skip to content

DOCSP-49963-Fixed-headings-query-plan #6296

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
10 changes: 5 additions & 5 deletions source/core/query-plans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The following diagram illustrates the query planner logic:
.. _cache-entry-state:

Plan Cache Entry State
~~~~~~~~~~~~~~~~~~~~~~
-------------------

Each plan cache query shape is associated with one of three states in
the cache:
Expand Down Expand Up @@ -128,7 +128,7 @@ changes to the plan cache.


Query Plan and Cache Information
--------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To view the query plan information for a given query, you can use
:method:`db.collection.explain()` or the :method:`cursor.explain()` .
Expand All @@ -141,7 +141,7 @@ To view plan cache information for a collection, you can use the
.. _query-plans-plan-cache-flushes:

Plan Cache Flushes
------------------
''''''''''''''''''''

The query plan cache does not persist if a :binary:`~bin.mongod`
restarts or shuts down. In addition:
Expand All @@ -165,7 +165,7 @@ Users can also:
:ref:`query-hash-plan-cache-key`

Plan Cache Debug Info Size Limit
--------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Starting in MongoDB 5.0, the
:ref:`plan cache <query-plans-query-optimization>` will save full
Expand Down Expand Up @@ -228,7 +228,7 @@ If one of the indexes were dropped, or if a new index ``{ x: 1, a: 1
change.

Availability
~~~~~~~~~~~~
''''''''''''''

The ``planCacheShapeHash`` and ``planCacheKey`` are available in:

Expand Down
6 changes: 5 additions & 1 deletion source/reference/command/find.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ The :dbcommand:`find` command has the following syntax:
}
)

.. note::
Since MongoDB 4.4, the :dbcommand:`find` command ignores the
``oplogReplay`` flag. However, if the ``oplogReplay`` flag is set,
the server accepts it for backwards compatibility, but has no effect.

.. _find-cmd-fields:

Command Fields
Expand Down Expand Up @@ -421,7 +426,6 @@ When using :ref:`Stable API <stable-api>` V1, the following
- ``max``
- ``min``
- ``noCursorTimeout``
- ``oplogReplay``
- ``returnKey``
- ``showRecordId``
- ``tailable``
Expand Down