Finding records with duplicate keys

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