Permalink
Browse files

Reduce array nesting from 300 to 150

  • Loading branch information...
1 parent f3ae342 commit 854f9cb23075e666f58d06743f7382f3afd09914 @tadmarshall tadmarshall committed Jul 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 jstests/nestedarr1.js
View
@@ -13,8 +13,7 @@ t = db.arrNestTest;
t.drop();
t.ensureIndex({a:1});
-nestedArr = makeNestArr(300);
-print(nestedArr);
+nestedArr = makeNestArr(150);
t.save( { tst : "test1", a : nestedArr } );
t.save( { tst : "test2", a : nestedArr } );
@@ -25,3 +24,4 @@ assert.eq(1, t.find({tst : "test2"}).count(), "find test");
//make sure index insertion failed (nesting must be large enough)
assert.eq(0, t.find().hint({a:1}).explain().n, "index not empty");
+print("Test succeeded!")

0 comments on commit 854f9cb

Please sign in to comment.