-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Shell
-
None
-
ALL
Running these two cases shows some unexpectedly huge discrepancy in run time:
db.user.drop(); for (var x = 0; x < 10000; x++) { db.user.insert({ x: x }); if (!db.getMongo().useWriteCommands()) { db.runCommand({ getLastError: 1 }); } }
raw smoke.py: 4697 ms
--use-write-commands: 8640 ms
db.user.drop(); var bulk = db.user.initializeUnorderedBulkOp(); for (var x = 0; x < 10000; x++) { bulk.insert({ x: x }); } bulk.execute();
raw smoke.py: 4769 ms
--use-write-commands: 305 ms
- duplicates
-
SERVER-12950 Ordered write commands in mongos do not correctly break batches
- Closed