📜  SQLite 和 CouchDB 的区别

📅  最后修改于: 2021-09-15 01:52:05             🧑  作者: Mango

1. SQLite:
SQLite 是一个提供关系数据库管理系统 (RDBMS) 的软件库。它由 D. Richard Hipp 于 2000 年 8 月设计。SQLite 的设计目标是允许程序在不安装数据库管理系统 (DBMS) 或不需要数据库管理员的情况下运行。 SQLite 中的 lite 意味着在设置、数据库管理和所需资源方面的轻量级。

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

SQLite 和 CouchDB 的区别:

S.NO. SQLITE COUCHDB
1. Developed By D. Richard Hipp on August 2000. Developed by Apache Software Foundation and initially released in 2005.
2. SQLite is developed only in C language. CouchDB is written in Erlang.
3. It is widely used in-process RDBMS. A native JSON – document store inspired by Lotus Notes, scalable from globally distributed server-clusters down to mobile phones.
4. The primary database model for SQLite is Relational DBMS. The primary database model for CouchDB is Document Store.
5. SQLite does not require a server to run. Hence, it is serverless. Server operating systems for CouchDB are Android, BSD, Linux, OS X, Solaris and Windows.
6. In SQLite, Data Schema is fixed. CouchDB is Data Schema free.
7. SQLite have predefined datatypes such as float, date, number, etc. In CouchDB there is no predefined datatypes.
8. It does not supports XML format. It does not supports XML format.
9. It does not support any replication methods. It support two replication methods –

  • Master-master replication
  • Master-slave replication
10. SQLite provides ACID transactions. CouchDB does not supports ACID transactions.
11. SQLite does not supports Map Reduce method. CouchDB supports Map Reduce method.
12. SQLite provides the concept of Referential Integrity and have Foreign keys. CouchDB does not provides the concept of Referential Integrity. Hence, no Foreign Keys.