Permalink
Browse files

SERVER-5244 even better construction of large string value

  • Loading branch information...
milkie committed Mar 10, 2012
1 parent b158626 commit e7a2aa504e99c2a75fb28bc8e0c733cc23fdbfd5
Showing with 2 additions and 5 deletions.
  1. +2 −5 jstests/push2.js
View
@@ -4,14 +4,11 @@ t.drop()
t.save( { _id : 1 , a : [] } )
-var inc = "asdasdasdasdasdasdasasdasdasdasdasdasdasasdasdasdasdasdasdasasdasdasdasdasdasdasasdasdasdasdasdasdas";
-var s = inc;
-while ( s.length < 500000 )
- s += s;
+s = new Array(700000).toString();
gotError = null;
-for ( x=0; x<200; x++ ){
+for ( x=0; x<100; x++ ){
print (x + " pushes");
t.update( {} , { $push : { a : s } } );
gotError = db.getLastError();

0 comments on commit e7a2aa5

Please sign in to comment.