Jun 3, 2020 in MongoDB
Q: How to use map/reduce to handle more than 10000 unique keys for grouping  in MongoDB?

1 Answer

0 votes
Jun 3, 2020

Use Version 2.2. The db.collection.group() method's returned array can contain at most 20,000 elements; i.e. at most 20,000 unique groupings. For group by operations that results in more than 20,000 unique groupings, use mapReduce. Previous versions had a limit of 10,000 elements.

Click here to read more about Loan/Mortgage
Click here to read more about Insurance