diff options
Diffstat (limited to 'jstests/noPassthroughWithMongod/btreedel.js')
-rw-r--r-- | jstests/noPassthroughWithMongod/btreedel.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/noPassthroughWithMongod/btreedel.js b/jstests/noPassthroughWithMongod/btreedel.js index 824eb3e63a6..89af6aa7d5d 100644 --- a/jstests/noPassthroughWithMongod/btreedel.js +++ b/jstests/noPassthroughWithMongod/btreedel.js @@ -3,9 +3,11 @@ t = db.foo;
t.remove({});
+var bulk = t.initializeUnorderedBulkOp();
for (var i = 0; i < 1000000; i++) {
- t.insert({ _id: i, x: 'a b' });
+ bulk.insert({ _id: i, x: 'a b' });
}
+assert.writeOK(bulk.execute());
print("1 insert done count: " + t.count());
|