db.qatest2.aggregate([

{

    $group:{_id:{date:'$count_date',name:'$committer_name',project:'$project_name'},count: {$sum: 1},dups: {$addToSet: '$_id'}}

},

{

    $match: {count: {$gt: 1}}

}

]).forEach(function(doc){

doc.dups.shift();

db.qatest2.remove({_id: {$in: doc.dups}});

})

db.feedback.update(medical_record_no:'00511673'),{$set:{ creator:’曹文’}})

/home/work/mongodb/bin/mongo jy-eden-web1.idc1.XXXX.com:2900

db.qatest.remove({})

db.qatest.find().sort({"count_date":-1})