mongo查询重复
db.all_datas4.aggregate([
{ $group: { _id : '$rewriteId', count: { $sum : 1 } } },
{ $match: { count: { $gt : 1} } }
])
rewriteId 为重复目标
mongo查询重复
db.all_datas4.aggregate([
{ $group: { _id : '$rewriteId', count: { $sum : 1 } } },
{ $match: { count: { $gt : 1} } }
])
rewriteId 为重复目标