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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~