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

Bulk write updateMany and deleteMany may not increment query metrics

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

      The implementation of bulkWrite metrics should be equivalent to a single bulkWrite operation. That is, successive insert ops (on the same namespace) in the bulkWrite are grouped into one call of "opCounters.inserts" and every update/delete op (regardless if its on the same namespace or not) increments its own metric. For example, a single update command with 5 update ops will increment this metric 5 times.

      Ensure the updateMany and deleteMany cases also follow this pattern. Please refer to this slack conversation for more context. 

            Assignee:
            Unassigned Unassigned
            Reporter:
            kruti.shah@mongodb.com Kruti Shah
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: