V
V
Vladislav2020-04-21 09:19:36
Yii
Vladislav, 2020-04-21 09:19:36

How to remove MongoDB duplicates?

There is a user base, they have a unique _id field, and custom. id.
I need to remove all duplicates with id field and leave only unique ones.
On yii2, maybe there are some methods already ready?

I saw such an example, make a selection, create a temp_table with unique users by id.
drop the old one and copy the temporary one.
Are there any other options ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question