juzhax.com
Fast way to find duplicate data in MongoDB
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. { allowDiskUse: true} is optional if your data is not huge. { $limit : 5 …