finding all duplicates in mongo db/robomongp

132 Views Asked by At

Been stuck for almost two weeks, is there anyway with mongo db to find all duplicates in a collection and then delete them? i have +- 66 000 records.also new to mongo so how do i use that whole collection as an array instead of typing all out.

1

There are 1 best solutions below

0
On

You've been stuck for two weeks on this, so I expect you've tried googling it. Anyhow I found some questions that were similar and that might be of help.

Find all duplicate documents in a MongoDB collection by a key field

Find duplicate records in MongoDB