Skip to content

Commit

Permalink
delay starting MR until all data was inserted
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Lerner committed Oct 25, 2010
1 parent 86b6240 commit ebfc1c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jstests/sharding/bigMapReduce.js
Expand Up @@ -7,6 +7,10 @@ db = s.getDB( "test" );
var str=""
for (i=0;i<4*1024;i++) { str=str+"a"; }
for (j=0; j<50; j++) for (i=0; i<512; i++){ db.foo.save({y:str})}
db.getLastError();

s.printChunks();
s.printChangeLog();

function map() { emit('count', 1); }
function reduce(key, values) { return Array.sum(values) }
Expand Down

0 comments on commit ebfc1c3

Please sign in to comment.