juzhax.com
Fast way to find duplicate data in MongoDB - Juzhax Technology
I need to find out the duplicate data content in my 40 Millions records, then I can make the unique index to my name field. [code lang=”shell”] > db.collecton.aggregate([ … { $group : {_id : "$field_name", total : { $sum : 1 } } }, … { $match : { total : { $gte : … Continue reading "Fast way to find duplicate data in MongoDB"