[SERVER-1873] group can only process 10k unique keys Created: 29/Sep/10  Updated: 12/Jul/16  Resolved: 17/Dec/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.6.2
Fix Version/s: 1.7.4

Type: Bug Priority: Major - P3
Reporter: Kenny Gorman Assignee: Unassigned
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-431 Increase the 4mb BSON Object Limit to... Closed
Operating System: ALL
Participants:

 Description   

db.SOURCE.group(
{
key:

{'userid': true}

,
initial:

{sum: 0}

,
reduce: function(doc, prev)

{ prev.sum += 1}

});

Wed Sep 29 11:16:50 uncaught exception: group command failed: {
"errmsg" : "exception: group() can't handle more than 10000 unique keys",
"code" : 10043,
"ok" : 0
}



 Comments   
Comment by auto [ 17/Dec/10 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: up to 20k keys for group SERVER-1873
https://github.com/mongodb/mongo/commit/bb94161851e3222a95a1455e08c8b6d11d2615c3

Comment by Eliot Horowitz (Inactive) [ 17/Dec/10 ]

bson size is now 16mb, so size is higher.

also, i think this: SERVER-447 is what you really want.

Comment by Eliot Horowitz (Inactive) [ 29/Sep/10 ]

group is inherently limited to the max bson document size
if we increase bson size - this will go up as well
will leave as a marker to remember to change it in conjuction

Generated at Thu Feb 08 02:58:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.