From 226e6e5c1e01732220c06c15a52699c6bf0b0ddd Mon Sep 17 00:00:00 2001 From: jason-price-mongodb Date: Thu, 11 Nov 2021 17:07:16 -0800 Subject: [PATCH] DOCS-14927 queryHash and planCacheKey --- source/includes/getMore-slow-queries.rst | 6 ++++++ source/reference/command/getMore.txt | 4 ++++ source/release-notes/5.1.txt | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 source/includes/getMore-slow-queries.rst diff --git a/source/includes/getMore-slow-queries.rst b/source/includes/getMore-slow-queries.rst new file mode 100644 index 00000000000..962d0e3bb13 --- /dev/null +++ b/source/includes/getMore-slow-queries.rst @@ -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 +`, the :ref:`queryHash ` and +:ref:`planCacheKey ` fields are added to the :ref:`slow +query log message ` and the :doc:`profiler log +message `. diff --git a/source/reference/command/getMore.txt b/source/reference/command/getMore.txt index 12f49907552..795db8d461d 100644 --- a/source/reference/command/getMore.txt +++ b/source/reference/command/getMore.txt @@ -216,3 +216,7 @@ For :doc:`multi-document transactions `: .. include:: /includes/extracts/transactions-operations-getMore.rst +Slow Queries +~~~~~~~~~~~~ + +.. include:: /includes/getMore-slow-queries.rst diff --git a/source/release-notes/5.1.txt b/source/release-notes/5.1.txt index f3ecbd199bc..f6028c2d67d 100644 --- a/source/release-notes/5.1.txt +++ b/source/release-notes/5.1.txt @@ -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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~