Difference between CouchDB and PostgreSQL

1. CouchDB :
Apache CouchDB is an open-source document-oriented NoSQL database that uses multiple formats and protocols to store, transfer, and process its data, it uses JSON to store data, JavaScript as its query language using MapReduce, and HTTP for an API. It was developed by Apache Software Foundation and initially released in 2005. It is written in Erlang.

2. PostgreSQL :
PostgreSQL is a powerful, open-source Object-relational database system. It provides good performance with low maintenance efforts because of its high stability. PostgreSQL was the first DBMS that implemented multi-version concurrency control (MVCC) feature.

Difference between CouchDB and PostgreSQL :

1. Developed by Apache Software Foundation and initially released in 2005. Developed By PostgreSQL Global Development Group on 1989.
2. It is native JSON – document store inspired by Lotus Notes, scalable from globally distributed server-clusters down to mobile phones. It is widely used open source RDBMS.
3. CouchDB is written in Erlang. PostgreSQL is written in C languages.
4. The primary database model for CouchDB is Document Store. The primary database model for PostgreSQL is Relational DBMS.
5. It does not supports SQL query language. It supports SQL query language.
6. Server operating systems for CouchDB are Android, BSD, Linux, OS X, Solaris and Windows. Server operating systems for PostgreSQL are FreeBSD, HP-UX, Linux, NetBSD, OpenBSD, OS X, Solaris, Unix and Windows.
7. It does not supports predefined data types. It supports predefined data types such as string, integer, float or date.
8. It does not support XML Format. It supports XML Format.
9. It support two replication methods – Master-master replication and Master-slave replication. It support only one replication methods – Master-master replication.
10. In CouchDB, partitioning can be done by Sharding. In PostgreSQL, partitioning can be done by range, list and hash.

Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up

Small things always make you to think big

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :
Practice Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.