标签:重复 cti hid rem mat move fun reac UNC
db.info.aggregate([
{
$group:{_id:{Matchid:"$Matchid"},count:{$sum:1},dups:{$addToSet:"$_id"}}
},
{
$match:{count:{$gt:1}}
}
]).forEach(function(doc){
doc.dups.shift();
db.info.remove({_id:{$in:doc.dups}});
})
标签:重复 cti hid rem mat move fun reac UNC
原文地址:https://www.cnblogs.com/sike8/p/12470353.html