Skip to content

DOCS-14927 queryHash and planCacheKey #6153

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
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
6 changes: 6 additions & 0 deletions source/includes/getMore-slow-queries.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Starting in MongoDB 5.1 (and 4.4.4 and 4.2.12), when a
:dbcommand:`getMore` command is logged as a :ref:`slow query
<log-message-slow-ops>`, the :ref:`queryHash <query-hash>` and
:ref:`planCacheKey <plan-cache-key>` fields are added to the :ref:`slow
query log message <log-message-slow-ops>` and the :doc:`profiler log
message </tutorial/manage-the-database-profiler>`.
4 changes: 4 additions & 0 deletions source/reference/command/getMore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,7 @@ For :doc:`multi-document transactions </core/transactions>`:

.. include:: /includes/extracts/transactions-operations-getMore.rst

Slow Queries
~~~~~~~~~~~~

.. include:: /includes/getMore-slow-queries.rst
5 changes: 5 additions & 0 deletions source/release-notes/5.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ Opcode Counters
Resharding Statistics
- :serverstatus:`shardingStatistics.resharding.lastOpEndingChunkImbalance`

Extra Logging Fields for Slow Queries with ``getMore`` Command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/getMore-slow-queries.rst

Schema Validation Errors Contain Description Field
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down