Skip to content

Commit d0c4ad7

Browse files
steverenkay-kim
authored andcommitted
DOCS-7737: keysInserted and keysDeleted
Signed-off-by: kay <[email protected]>
1 parent 482aa9f commit d0c4ad7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

source/reference/database-profiler.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ example document reflects a find operation:
5151
"keysExamined" : 2,
5252
"docsExamined" : 2,
5353
"cursorExhausted" : true,
54-
"keyUpdates" : 0,
54+
"keysInserted" : 0,
55+
"keysDeleted" : 0,
5556
"writeConflicts" : 0,
5657
"numYield" : 0,
5758
"locks" : {
@@ -296,12 +297,13 @@ operation.
296297
- Are upserts (that result in an insert)
297298
- Do not use a modifier operation such as :update:`$set`
298299

299-
.. data:: system.profile.keyUpdates
300+
.. data:: system.profile.keysInserted
300301

301-
The number of :doc:`index </indexes>` keys the update changed in
302-
the operation. Changing an index key
303-
carries a small performance cost because the database must remove the old
304-
key and inserts a new key into the B-tree index.
302+
The number of index keys inserted for a given write operation.
303+
304+
.. data:: system.profile.keysDeleted
305+
306+
The number of index keys deleted for a given write operation.
305307

306308
.. data:: system.profile.writeConflicts
307309

0 commit comments

Comments
 (0)