-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
(copied to CRM)
Currently, update commands like findAndModify may return a document but a nreturned value is not logged, nor is metrics.document.returned incremented in serverStatus. docsExamined and keysExamined are both logged and both metrics.queryExecutor.scannedObjects and metrics.queryExecutor.scanned, respectively, are incremented in serverStatus. This can result in highly inflated Query Targeting ratios during periods of frequent updates.
We should account for any documents being returned via update commands.