diff --git a/source/includes/fact-command-diagnostics.rst b/source/includes/fact-command-diagnostics.rst new file mode 100644 index 00000000000..20d6b8dd9e0 --- /dev/null +++ b/source/includes/fact-command-diagnostics.rst @@ -0,0 +1,13 @@ +- :dbcommand:`aggregate` +- ``find`` (:ref:`OP_QUERY` and + :dbcommand:`command`) +- :dbcommand:`findAndModify` +- :dbcommand:`count` +- :dbcommand:`distinct` +- ``getMore`` (:ref:`OP_GET_MORE` and + :dbcommand:`command`) +- :dbcommand:`geoNear` +- :dbcommand:`group` +- :dbcommand:`mapReduce` +- :dbcommand:`delete` +- :dbcommand:`update` \ No newline at end of file diff --git a/source/reference/database-profiler.txt b/source/reference/database-profiler.txt index b496e06b000..b981a0e8bb2 100644 --- a/source/reference/database-profiler.txt +++ b/source/reference/database-profiler.txt @@ -158,12 +158,17 @@ operation. The type of operation. The possible values are: + - ``command`` + - ``count`` + - ``distinct`` + - ``geoNear`` + - ``getMore`` + - ``group`` - ``insert`` + - ``mapReduce`` - ``query`` - - ``update`` - ``remove`` - - ``getmore`` - - ``command`` + - ``update`` .. data:: system.profile.ns @@ -208,8 +213,7 @@ operation. .. versionchanged:: 3.2.0 - Renamed from ``system.profile.nscanned``. - + Renamed from ``system.profile.nscanned``. The number of :doc:`index ` keys that MongoDB scanned in order to carry out the operation. @@ -218,6 +222,13 @@ operation. index keys to find the result documents. Consider creating or adjusting indexes to improve query performance.. + .. versionchanged:: 3.4 + + ``keysExamined`` is available for the following commands and + operations: + + .. include:: /includes/fact-command-diagnostics.rst + .. data:: system.profile.docsExamined .. versionchanged:: 3.2.0 @@ -227,6 +238,13 @@ operation. The number of documents in the collection that MongoDB scanned in order to carry out the operation. + .. versionchanged:: 3.4 + + ``docsExamined`` is available for the following commands and + operations: + + .. include:: /includes/fact-command-diagnostics.rst + .. data:: system.profile.moved .. versionchanged:: 3.0.0 @@ -261,6 +279,19 @@ operation. it receives the documents from a cursor. The field only appears when the value is ``true``. + .. versionchanged:: 3.4 + + ``hasSortStage`` is available for the following commands and + operations: + + - ``find`` (:ref:`OP_QUERY` and + :dbcommand:`command`) + - ``getMore`` (:ref:`OP_GET_MORE` and + :dbcommand:`command`) + - :dbcommand:`findAndModify` + - :dbcommand:`mapReduce` + - :dbcommand:`aggregate` + .. data:: system.profile.ndeleted The number of documents deleted by the operation.