Skip to content
Related Articles

Related Articles

Difference between CouchDB and MongoDB
  • Last Updated : 07 Jul, 2020

Apache CouchDB developed by Apache Software Foundation and initially released in 2005. CouchDB is written in Erlang. It is an open-source database that uses different formats and protocols to store, transfer, and process its data. Apache CouchDB uses JSON to store data, JavaScript as its query language using MapReduce. Documents are the primary unit of data in CouchDB and they also include metadata. Document fields are uniquely named and contain values of varying types and there is no set limit to text size or element count.


MongoDB is document-oriented and does not need the row and column format of data. It gives high performance and is dynamic in nature where we don’t need to predefined a schema like in conventional RDBMS. MongoDB stores data in JSON format which allows you to send the data in any form you want. It is the cross-platform database that works with almost every platform like Windows, Linux, etc. 

Difference between CouchDB and MongoDB

In this section, we will be discussing the differences between the two databases, CouchDB and MongoDB.

S.NO CouchDB MongoDB
1 Datastores in JSON format. Datastores in BSON format.
2 The database contains documents. The database contains collections.
3 It favors availability. It favors consistency.
4 It is written in Erlang. It is written in C++.
5 It is eventually consistent. It is strongly consistent.
6 MongoDB is faster than CouchDB. MongoDB provides faster read speeds.
7 It follows the Map/Reduce query method. It follows Map/Reduce creating a collection and object-based query language.
8 It uses HTTP/REST-based interface. It uses a TCP/IP based interface. 
9 CouchDB provides support for Mobile Devices. 
It can run on Apple iOS and Android devices.
MongoDB provides no mobile support.
10 CouchDB offers master-master and master-slave replication. MongoDB offers master-slave replication.
11 CouchDB is not suitable for a rapidly growing database where the structure is not clearly defined from the beginning. MongoDB is an apt choice for a rapidly growing database.
12 CouchDB uses map-reduce functions and it will difficult for users with a traditional SQL learning experience. MongoDB is easier to learn as it is closest in syntax to SQL. 
My Personal Notes arrow_drop_up
Recommended Articles
Page :