📜  MongoDB和CouchDB之间的区别

📅  最后修改于: 2021-08-24 16:24:57             🧑  作者: Mango

1. MongoDB:
MongoDB是用于大量数据存储的面向文档的开源数据库。它属于NoSQL数据库的分类。 NoSQL工具意味着它不使用通常的行和列。 MongoDB使用BSON(文档存储格式),这是JSON文档的二进制样式。

2. CouchDB:
Apache CouchDB是面向开源文档的NoSQL数据库,它使用多种格式和协议来存储,传输和处理其数据,它使用JSON来存储数据,使用JavaScript作为其使用MapReduce的查询语言以及使用HTTP作为API。它由Apache Software Foundation开发,最初于2005年发布。它是用Erlang编写的。

MongoDB和CouchDB之间的区别:

S.NO. MONGODB COUCHDB
1. Developed By MongoDB, Inc on 2009. Developed by Apache Software Foundation and initially released in 2005.
2. MongoDB is written in C++. CouchDB is written in Erlang.
3. It is one of the most popular document stores available both as a fully managed cloud service and for deployment on self-managed infrastructure. It is native JSON – document store inspired by Lotus Notes, scalable from globally distributed server-clusters down to mobile phones.
4. The primary database model for MongoDB is Document store. The primary database model for CouchDB is Document Store.
5. There is no Secondary database models. It has Document store as Secondary database models.
6. Server operating systems for MongoDB are Linux, OS X, Solaris and Windows. Server operating systems for CouchDB are Android, BSD, Linux, OS X, Solaris and Windows.
7. It supports predefined data types such as string, integer, double, decimal, boolean or date. It does not supports predefined data types.
8. It supports read-only SQL queries via the MongoDB Connector for BI. It does not supports SQL query language.
9. It support only one replication methods – Master-master replication. It support two replication methods – Master-master replication and Master-slave replication.
10. It supports In-memory capabilities. It does not supports In-memory capabilities.
11. It support multi-document ACID Transactions with snapshot isolation. It does not support to ensure data integrity after non-atomic manipulations of data.