[SERVER-15825] Add stats for updates (w/upsert) which insert, in server status Created: 27/Oct/14  Updated: 06/Dec/22

Status: Open
Project: Core Server
Component/s: Performance, Write Ops
Affects Version/s: None
Fix Version/s: Needs Further Definition

Type: Improvement Priority: Major - P3
Reporter: David Hows Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: metrics, serverstatus, stats
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-17127 Make accounting for upserts consisten... Open
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Currently, there is no way to track the number of times an update operation performs an upsert vs an update.

We should capture this in serverStatus



 Comments   
Comment by Scott Hernandez (Inactive) [ 28/Oct/14 ]

Do you only want to track this and not the other properties of an update result? Seems like you might want to track inserts which require a transformation or not (a replacement), or inserts without index, or errors, or number of documents updated, or the number of no-ops, matches, updates with no index update, bitblts, etc....

Note, some of these already exist in the metrics tree:

		"document" : {
			"deleted" : NumberLong(0),
			"inserted" : NumberLong(1),
			"returned" : NumberLong(0),
			"updated" : NumberLong(0)
		},
		"operation" : {
			"fastmod" : NumberLong(0),
			"idhack" : NumberLong(0),
			"scanAndOrder" : NumberLong(0)
		},
		"queryExecutor" : {
			"scanned" : NumberLong(0),
			"scannedObjects" : NumberLong(0)
		},
		"record" : {
			"moves" : NumberLong(0)
		},

Generated at Thu Feb 08 03:39:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.