Batch inserts should be counted and profiled individually

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.6.0-rc2
    • Affects Version/s: 2.5.5
    • Component/s: Write Ops
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Eric Milkie
              Reporter:
              Eric Milkie
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: