如何提高mongo MR的速度 貌似 加索引 Mr之前先排序 速度也非常慢
lusi102121
2014-02-19
而且在MR的时候还遇到了 如下问题
warning: ClientCursor::yield can't unlock b/c of recursive lock ns: yxkk.tmp.mr.ClientLogCollection_608 top Mr代码为 var m=function(){ emit({uid:this.uid,serviceId:this.serviceId,itemType:this.itemType,operatorType:this.operatorType},1);} var r=function(key,values){return Array.sum(values);} db.ClientLogCollection.mapReduce( m, r, { out: {reduce:"UserItemOperatePv"}, query:{itemType:{$ne:5},uplaodDate:{$gt: ISODate("2014-02-11T00:10:46.588Z")}} } ) |