📜  SQLite和MongoDB之间的区别

📅  最后修改于: 2021-07-05 06:40:21             🧑  作者: Mango

1. SQLite:
SQLite是一个提供关系数据库管理系统(RDBMS)的软件库。它是由D. Richard Hipp在2000年8月设计的。SQLite的设计目标是允许在不安装数据库管理系统(DBMS)或不需要数据库管理员的情况下运行程序。

2. MongoDB:
MongoDB是用于大量数据存储的面向文档的开源数据库。它属于NoSQL数据库的分类。 NoSQL工具意味着它不使用通常的行和列。 MongoDB使用BSON(文档存储格式),它是JSON文档的二进制样式。

SQLite和MongoDB之间的区别:

S.NO. SQLITE MONGODB
1. Developed by D. Richard Hipp on August 2000. Developed By MongoDB, Inc on 2009.
2. It is widely used in-process RDBMS. It is one of the most popular document stores available both as fully managed cloud service and for deployment on self-managed infrastructure.
3. The primary database model for SQLite is Relational DBMS. The primary database model for MongoDB is Document store.
4. It has no Secondary database models. It has Document store as Secondary database models.
5. SQLite is developed only in C language. MongoDB is developed only in C++ language.
6. SQLite does not require a server to run. Hence, it is serverless. Server operating systems for MongoDB are Linux, OS X, Solaris and Windows.
7. It does not support Server-side scripting. It has Javascript for Server-side scripts.
8. It supports SQL query language only. It supports JSON query language along with SQL.
9. It does not support any replication methods. It support only one replication methods – Master-master replication.
10. It does not support any Partitioning methods. In MongoDB, partitioning can be done by Sharding.
11. SQLite does not supports Map Reduce method. MongoDB supports Map Reduce method.
12. SQLite provides the concept of Referential Integrity and have Foreign keys. MongoDB does not provides the concept of Referential Integrity. Hence, no Foreign Keys.