mongodb/cookbook — pull request #8 by dandv (2014-04-24 06:23:50+00:00)
Title: Finding records with duplicate keys

Three solutions: mapReduce, db.collection.group, aggregation