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

Batch inserts should be counted and profiled individually

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc2
    • Affects Version/s: 2.5.5
    • Component/s: Write Ops
    • Labels:
      None

      Currently, the code for doing batch write-command inserts does all the inserts under one CurOp and only profiles that one operation. It's not currently possible to interrupt the batch in the middle of inserts, and thus $maxTimeMS doesn't work either.
      Also, by profiling the one CurOp explicitly, this means the batch insert will get profiled twice and might register two profile documents (once in WriteBatchExecutor::execInserts()and once as part of assembleResponse()).

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: