1. 口袋数据库:
PouchDB 是一个开源的 NoSQL 内联数据库。它是在 CouchDB 之后设计的,CouchDB 是一个支持 npm 的 NoSQL 数据库。它是用 JavaScript 语言编写的。由于 PouchDB 驻留在浏览器中,因此无需通过网络执行查询,因此速度非常快。它在浏览器中使用 IndexedDB 和 WebSQL 在本地存储数据。
2. MongoDB:
MongoDB 是一个跨平台的面向文档的非关系型(即 NoSQL)数据库程序。它是一个开源文档数据库,以键值对的形式存储数据。 MongoDB 由 MongoDB Inc. 开发,最初于 2009 年 2 月 11 日发布。它是用 C++、Go、JavaScript、 Python语言编写的。 MongoDB 提供高速、高可用性和高可扩展性。 PouchDB 和 MongoDB 的区别:
SR.NO | PouchDB | MongoDB |
---|---|---|
1. | It is developed by Apache Software Foundation. | It is developed by MongoDB Inc. |
2. | It was released in 2012. | It was released on 11 February 2009. |
3. | PouchDB server operating systems are server-less and require a JavaScript environment (browser, Node.js). | MongoDB Server operating systems are Solaris, Linux, OS X and Windows. |
4. | It is written using Javascript language. | It is written in C++, Go, JavaScript, Python languages. |
5. | It does not provide ACID transactions. | It provides Multi-Document ACID transactions with snapshot isolation. |
6. | The primary database model for PouchDB is Document Store. | The primary database model for MongoDB is also Document Store. |
7. | It does not support predefined data types. | It supports predefined data types such as string, integer, double, decimal, boolean and date. |
8. | It supports Map Reduce method. | It also supports Map Reduce method. |