简体   繁体   English

CouchDB或MongoDB是否支持聚合?

[英]Do CouchDB or MongoDB support aggregation?

CouchDB或MongoDB是否支持聚合?

From MongoDB's point of view, yes. 从MongoDB的角度来看,是的。

See: http://www.mongodb.org/display/DOCS/Aggregation 请参阅: http//www.mongodb.org/display/DOCS/Aggregation

Note there are limitations there (there is work being done to provide greater support for aggregrations, see here ). 请注意,那里存在局限性(正在做一些工作来为聚集提供更大的支持,请参见此处 )。 Typically, you may need to use MapReduce (see Mongo docs here ) especially on larger resultsets. 通常,您可能需要使用MapReduce(请参阅此处的 Mongo文档),尤其是在较大的结果集上。

CouchDB uses map/reduce for this. CouchDB为此使用了map / reduce。 Aggregation happens during the reduce stage. 聚集发生在还原阶段。

For general information on CouchDB's map/reduce system, aka views, see: 有关CouchDB的map / reduce系统(即aka视图)的一般信息,请参见:

And for some examples of simulating SQL-style aggregation functions and those CouchDB provides, see: 有关模拟SQL样式聚合函数以及CouchDB提供的示例,请参见:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM