Skip to content

Commit 1ae6a29

Browse files
author
Bob Grabar
committed
DOCS-889 changes to database profiler in 2.2
1 parent 521a306 commit 1ae6a29

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

source/reference/database-profiler.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ operation.
118118

119119
.. stats:: ntoreturn
120120

121+
.. versionchanged:: 2.2
122+
121123
The number of documents the operation specified to return. For
122124
example, the :dbcommand:`profile` command would return one document
123125
(a results document) so the :status:`ntoreturn` value would be ``1``. The
@@ -129,8 +131,14 @@ operation.
129131
:method:`find() <db.collection.find()>` command with no limit
130132
specified.
131133

134+
In version 2.0, this information was provided for ``query`` and
135+
``command`` operations. In 2.2, this information is also provided for
136+
``getmore`` operations.
137+
132138
.. stats:: ntoskip
133139

140+
.. versionadded:: 2.2
141+
134142
The number of documents the :method:`skip() <cursor.skip()>` method
135143
specified to skip.
136144

@@ -156,21 +164,29 @@ operation.
156164

157165
.. stats:: nmoved
158166

167+
.. versionadded:: 2.2
168+
159169
The number of documents moved on disk by the operation.
160170

161171
.. stats:: nupdated
162172

173+
.. versionadded:: 2.2
174+
163175
The number of documents updated by the operation.
164176

165177
.. stats:: keyUpdates
166178

179+
.. versionadded:: 2.2
180+
167181
The number of :doc:`index </indexes>` keys the update changed in
168182
the operation. Changing an index key
169183
carries a small performance cost because the database must remove the old
170184
key and inserts a new key into the B-tree index.
171185

172186
.. stats:: numYield
173187

188+
.. versionadded:: 2.2
189+
174190
The number of times the operation yielded to allow other operations
175191
to complete. Typically, operations yield when they need access to
176192
data that MongoDB has not yet fully read into memory. This allows
@@ -180,6 +196,8 @@ operation.
180196

181197
.. stats:: lockStats
182198

199+
.. versionadded:: 2.2
200+
183201
The time in microseconds the operation spent acquiring and holding
184202
locks. This field reports data for the following lock types:
185203

0 commit comments

Comments
 (0)