Skip to content

DOCS-7700 #2759

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

Closed
wants to merge 2 commits into from
Closed
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
13 changes: 13 additions & 0 deletions source/includes/fact-command-diagnostics.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- :dbcommand:`aggregate`
- ``find`` (:ref:`OP_QUERY<wire-op-query>` and
:dbcommand:`command<find>`)
- :dbcommand:`findAndModify`
- :dbcommand:`count`
- :dbcommand:`distinct`
- ``getMore`` (:ref:`OP_GET_MORE<wire-op-query>` and
:dbcommand:`command<getMore>`)
- :dbcommand:`geoNear`
- :dbcommand:`group`
- :dbcommand:`mapReduce`
- :dbcommand:`delete`
- :dbcommand:`update`
41 changes: 36 additions & 5 deletions source/reference/database-profiler.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -208,8 +213,7 @@ operation.

.. versionchanged:: 3.2.0

Renamed from ``system.profile.nscanned``.

Renamed from ``system.profile.nscanned``.
The number of :doc:`index </indexes>` keys that MongoDB scanned in
order to carry out the operation.

Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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<wire-op-query>` and
:dbcommand:`command<find>`)
- ``getMore`` (:ref:`OP_GET_MORE<wire-op-query>` and
:dbcommand:`command<getMore>`)
- :dbcommand:`findAndModify`
- :dbcommand:`mapReduce`
- :dbcommand:`aggregate`

.. data:: system.profile.ndeleted

The number of documents deleted by the operation.
Expand Down