2014-12-04 246 views
1

我使用的水壶v5.2支持MongoDB中的聚合pipleline 当使用MongoDB输入查询适用于小数据集但我需要使用选项 allowDiskUse查询可以“T图如何在Pentaho的 添加此同时,我测试了蒙戈贝壳此选项,它的工作如预期Pentaho Kettle(数据集成)MongoDB聚合

http://docs.mongodb.org/manual/reference/method/db.collection.aggregate/

http://wiki.pentaho.com/display/EAI/MongoDB+Input#MongoDBInput-queryaggpipeline

这个工程

[ {$unwind: "$friends"}, {$group : { '_id' : '$friends.id', name: {'$first': '$friends.name'} ,count: {$sum:1} } } ,{$sort: {count: -1}}, {$limit: 100} ] 

这并不

[ {$unwind: "$friends"}, {$group : { '_id' : '$friends.id', name: {'$first': '$friends.name'} ,count: {$sum:1} } } ,{$sort: {count: -1}}, {$limit: 100} ] , {allowDiskUse: true} 

回答

0

有你尝试检查“查询是聚集管道”框在MongoDB的输入步骤查询选项卡?

+0

是的我更新了我的问题与查询测试 – y0ft88 2014-12-06 09:48:54