0 votes
in MongoDB by
How to use map/reduce to handle more than 10000 unique keys for grouping  in MongoDB?

1 Answer

0 votes
by

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.

Related questions

0 votes
asked Nov 1, 2020 in MongoDB by SakshiSharma
+1 vote
asked Apr 17, 2021 in MongoDB by rajeshsharma
...