📜  Couchbase 和 PostgreSQL 的区别

📅  最后修改于: 2021-09-14 02:16:03             🧑  作者: Mango

1. 沙发座:
Couchbase Server 是一个开源、分布式、多模型 NoSQL 面向文档的数据库软件包,针对交互式应用程序进行了优化。它也被称为 Membase。它由 Couchbase, Inc. 开发,最初于 2010 年 8 月发布。

2. PostgreSQL :
PostgreSQL 是一个强大的开源对象关系数据库系统。由于其高稳定性,它以低维护工作提供良好的性能。它是第一个实现多版本并发控制 (MVCC) 功能的 DBMS。

Couchbase 和 PostgreSQL 的区别:

S.NO. COUCHBASE POSTGRESQL
1. Developed by Couchbase, Inc. and initially released on August 2011. Developed by PostgreSQL Global Development Group on 1989.
2. It is a JSON-based document store derived from CouchDB with a Memcached-compatible interface. It is widely used open source RDBMS.
3. Couchbase is written in C++, Erlang, C and Go languages. PostgreSQL is written in C languages.
4. he primary database model for Couchbase is Document Store. The primary database model for PostgreSQL is Relational DBMS.
5. It has Key-value store as Secondary database models. It has Document store as Secondary database models.
6. Server operating systems for Couchbase are Linux, OS X and Windows. Server operating systems for PostgreSQL are FreeBSD, HP-UX, Linux, NetBSD, OpenBSD, OS X, Solaris, Unix and Windows.
7. It has functions and timers in JavaScript for Server-side scripts. It has user defined functions for Server-side scripts.
8. In Couchbase, partitioning can be done by Sharding. In PostgreSQL, partitioning can be done by range, list and hash.
9. It support two replication methods – Master-master replication and Master-slave replication. It support only one replication methods – Master-master replication.
10. It supports in-memory capabilities. It does not supports in-memory capabilities.
11. Couchbase does not provides the concept of Referential Integrity. Hence, no Foreign Keys. PostgreSQL provides the concept of Referential Integrity and have Foreign keys.
12. Couchbase supports Map Reduce method. PostgreSQL does not supports Map Reduce method.