简体   繁体   中英

finding all duplicates in mongo db/robomongp

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM