1. 口袋数据库:
PouchDB 是一个开源的 NoSQL 内联数据库。它是在 CouchDB 之后设计的,它是一个支持 npm 的 NoSQL 数据库。它是用 JavaScript 语言编写的。由于 PouchDB 驻留在浏览器中,因此无需通过网络执行查询,因此速度非常快。它在浏览器中使用 IndexedDB 和 WebSQL 在本地存储数据。
2. MySQL:
MySQL 是一种基于结构化查询语言 (SQL) 的开源关系数据库管理系统 (RDBMS)。它由oracle 公司开发和管理,于1995 年5 月23 日首次发布。它被广泛应用于许多小型和大型工业应用程序,能够处理大量数据。
PouchDB 和 MySQL 的区别:
SR.NO | PouchDB | MySQL |
---|---|---|
1 | It is developed by Apache Software Foundation. | It is developed by Oracle . |
2 | It was released in 2012. | It was released on May 1995. |
3 | It is written using Javascript language. | It is written in C and C++ language. |
4 | The primary database model for PouchDB is Document Store. | The primary database model for MySQL is Relational DBMS. |
5 | It is Data Schema free. | Its Data Schema is fixed. |
6 | It does not has predefined data types. | It has predefined datatypes such as float, date, number, etc. |
7 | It does not provide ACID transactions. | It provides ACID transactions. |
8 | It provides Eventual Consistency method to ensure consistency in a distributed system. | It provides Immediate Consistency method to ensure consistency in a distributed system. |