何时在 MongoDB 上使用 CouchDB,反之亦然 [英] When to use CouchDB over MongoDB and vice versa
问题描述
我被困在这两个 NoSQL 数据库之间.
I am stuck between these two NoSQL databases.
在我的项目中,我将在数据库中创建一个数据库.例如,我需要一个创建动态表的解决方案.
In my project I will be creating a database within a database. For example, I need a solution to create dynamic tables.
因此用户可以创建包含列和行的表格.我认为 MongoDB 或 CouchDB 都会对此有好处,但我不确定哪一个.我也需要高效的分页.
So users can create tables with columns and rows. I think either MongoDB or CouchDB will be good for this, but I am not sure which one. I will also need efficient paging as well.
推荐答案
Of C, A &P(一致性、可用性和分区容限)哪两个对您来说更重要?快速参考,NoSQL 系统可视化指南
Of C, A & P (Consistency, Availability & Partition tolerance) which 2 are more important to you? Quick reference, the Visual Guide To NoSQL Systems
- MongodB:一致性和分区容错
- CouchDB:可用性和分区容错
一篇博文,Cassandra vs MongoDB vs CouchDB vs Redisvs Riak vs HBase vs Membase vs Neo4j 比较对每个比较的 NoSQL 数据库都有最佳使用"场景.引用链接,
A blog post, Cassandra vs MongoDB vs CouchDB vs Redis vs Riak vs HBase vs Membase vs Neo4j comparison has 'Best used' scenarios for each NoSQL database compared. Quoting the link,
- MongoDB:如果您需要动态查询.如果您更喜欢定义索引,而不是 map/reduce 函数.如果您需要在大型数据库上获得良好的性能.如果您想要 CouchDB,但您的数据更改太多,会填满磁盘.
- CouchDB :用于累积、偶尔更改的数据,在这些数据上运行预定义的查询.版本控制很重要的地方.
最近(2012 年 2 月)及更多综合比较,作者:Riyad Kalla,
A recent (Feb 2012) and more comprehensive comparison by Riyad Kalla,
- MongoDB:仅主从复制
- CouchDB:主-主复制
尝试两者的人的博客文章(2011 年 10 月),一个 MongoDB Guy 学习 CouchDB 评论说 CouchDB 的分页没有那么有用.
A blog post (Oct 2011) by someone who tried both, A MongoDB Guy Learns CouchDB commented on the CouchDB's paging being not as useful.
日期(2009 年 6 月)基准 Kristina Chodorow(MongoDB 背后的团队成员),
A dated (Jun 2009) benchmark by Kristina Chodorow (part of team behind MongoDB),
我会选择 MongoDB.
I'd go for MongoDB.
希望对你有帮助.
这篇关于何时在 MongoDB 上使用 CouchDB,反之亦然的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!