📜  SQLite和CouchDB之间的区别

📅  最后修改于: 2021-08-24 04:42:34             🧑  作者: Mango

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

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