Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-97962

Log nreturned value and increment metrics.document.returned for update commands

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            dave.walker@mongodb.com David Walker
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: