📜  SQLite 和 MongoDB 的区别

📅  最后修改于: 2021-09-10 01:48:01             🧑  作者: 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.