Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在节点应用程序中使用mongojs运行 mapreduce 作业。我意识到在 Web 服务器代码中使用 mapreduce 并不是最有效的方法,但它是出于测试目的。
是的,看看 node_modules/mongojs/mongodb/lib/collection.js 中的以下函数定义:
Collection.prototype.mapReduce = function mapReduce (map, reduce, options, callback)