[SERVER-12762] Batch inserts should be counted and profiled individually Created: 18/Feb/14  Updated: 11/Jul/16  Resolved: 10/Mar/14

Status: Closed
Project: Core Server
Component/s: Write Ops
Affects Version/s: 2.5.5
Fix Version/s: 2.6.0-rc2

Type: Improvement Priority: Major - P3
Reporter: Eric Milkie Assignee: Eric Milkie
Resolution: Done Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-12926 Insert write commands on documents >=... Closed
Duplicate
is duplicated by SERVER-13054 Statistics from write commands Closed
Related
related to SERVER-12607 Write commands should be interruptabl... Closed
Participants:

 Description   

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()).



 Comments   
Comment by Githook User [ 10/Mar/14 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-12762 make a new curop for each insert in a batch insert
Branch: master
https://github.com/mongodb/mongo/commit/0f83758b8547f7c5aed49aa8a8558fe1c3c8b36b

Generated at Thu Feb 08 03:29:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.