Description
> db.foo.drop()
|
true
|
> for (var i = 0; i < 20001; i++) { db.foo.insert({a: i}); } |
> db.runCommand({group: {ns: "foo", key: {a: 1}, $reduce: function(a, b) {}, initial: {}}}) |
{ "ok" : 0, "errmsg" : "EOO", "code" : 2 } |
The message that should be returned above instead of "EOO" is "group() can't handle more than 20000 unique keys".