diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-08-07 11:08:05 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-08-08 12:30:01 -0400 |
commit | e42a4603f7812286bea6b1e2df704d9781f75679 (patch) | |
tree | 9cc4b075ba4aa9e89a3c83f980df2766f522a88e /jstests/core/remove6.js | |
parent | 4df93459d69b1536340047f9693f66763e001343 (diff) | |
download | mongo-e42a4603f7812286bea6b1e2df704d9781f75679.tar.gz |
move some jstests to use bulk insert to make tests faster
Diffstat (limited to 'jstests/core/remove6.js')
-rw-r--r-- | jstests/core/remove6.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/core/remove6.js b/jstests/core/remove6.js index 96c5481c813..bee0537957d 100644 --- a/jstests/core/remove6.js +++ b/jstests/core/remove6.js @@ -6,9 +6,12 @@ N = 1000; function pop(){ t.drop(); + var arr = []; for ( var i=0; i<N; i++ ){ - t.save( { x : 1 , tags : [ "a" , "b" , "c" ] } ); + arr.push( { x : 1 , tags : [ "a" , "b" , "c" ] } ); } + t.insert( arr ); + assert.eq( t.count(), N ); } function del(){ |