My collection has one duplicate of each document, except for having different _ids:
{ _id: ObjectId("5ff22dcd3c8ce5f425c08a6d"),
model: '1r9',
path: 'path1.png',
xmax: 460,
xmin: 395,
ymax: 464,
ymin: 406 }
{ _id: ObjectId("5ff42dcd7c8ce5f425c08a70"),
model: '1r9',
path: 'path1.png',
xmax: 460,
xmin: 395,
ymax: 464,
ymin: 406 }
I have tried a lot of the solutions here: Fastest way to remove duplicate documents in mongodb
However, I am using a MongoDB Atlas Cluster which does not allow for allowDiskUse: true
Is there some way to delete these duplicates without running a long loop across the entire collection, which would take a long time?