mongodb删除重复数据
#查询name字段重复数据db.my_collection.aggregate([{'$group':{'_id':{'name':'$name'},'uniqueIds':{'$addToSet':'$_id'},'count':{'$sum':1}}},...
#查询name字段重复数据db.my_collection.aggregate([{'$group':{'_id':{'name':'$name'},'uniqueIds':{'$addToSet':'$_id'},'count':{'$sum':1}}},...