Skip to content

DOCS-7737: keysInserted and keysDeleted #2751

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 3 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
14 changes: 8 additions & 6 deletions source/reference/database-profiler.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ example document reflects a find operation:
"keysExamined" : 2,
"docsExamined" : 2,
"cursorExhausted" : true,
"keyUpdates" : 0,
"keysInserted" : 0,
"keysDeleted" : 0,
"writeConflicts" : 0,
"numYield" : 0,
"locks" : {
Expand Down Expand Up @@ -296,12 +297,13 @@ operation.
- Are upserts (that result in an insert)
- Do not use a modifier operation such as :update:`$set`

.. data:: system.profile.keyUpdates
.. data:: system.profile.keysInserted

The number of :doc:`index </indexes>` keys the update changed in
the operation. Changing an index key
carries a small performance cost because the database must remove the old
key and inserts a new key into the B-tree index.
The number of index keys inserted for a given write operation.

.. data:: system.profile.keysDeleted

The number of index keys deleted for a given write operation.

.. data:: system.profile.writeConflicts

Expand Down
2 changes: 1 addition & 1 deletion source/release-notes/3.4-compatibility.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Stricter validation include the following:
db.collection.createIndex( { z: NaN } );
db.collection.createIndex( { x: 1, unique: true } )

- Ensuring that the specified :ref:`index options
- Ensuring that the specified :doc:`index options
</core/index-properties>` are valid. Previous versions ignored
invalid options. For example, the following operations are no longer
valid:
Expand Down