📜  NoSQL 和 NewSQL 的区别

📅  最后修改于: 2021-09-11 04:18:03             🧑  作者: Mango

1. NoSQL
术语 NoSQL 将数据库分类为“No-SQL”。 NoSQL 是一个综合类的数据库,旨在克服 SQL 数据库产生的问题。它们被称为无模式文档,以文档、图形、键值和无序方式存储数据。

NoSQL 的优点:

  • 当需要动态行为时,它们比传统系统更好地扩展。
  • 这些系统针对非关系数据进行了更好的优化。
  • 允许执行写入时模式操作。

NoSQL 的缺点:

  • 使用 NoSQL 构建的系统基本上是非事务性的。
  • 创建的数据量巨大,不提供任何传统的数据库功能。
  • 当多个事务同时执行时,它不遵循一致性。

2.新SQL
术语 NewSQL 对数据库进行分类,这些数据库是关系模型与可扩展性、数据类型灵活性的进步相结合的。这些数据库专注于 NoSQL 中不存在的功能,提供了强大的一致性保证。这涵盖了两层数据,一层是关系层,另一层是键值存储。

NewSQL 的优点:

  • 它为传统的关系数据库引入了新的实现。
  • 它汇集了 SQL 和 NoSQL 的优点。
  • 很容易在用户的类型和需求之间迁移。

NewSQL 的缺点:

  • 它们提供对丰富的传统系统的部分访问。
  • 它可能会导致内存架构出现问题,以超过数据量。
  • 此类数据库的核心基础是关系系统,这使其难以理解。

NoSQL 和 NewSQL 的区别:

S.No NoSQL NewSQL
1. NoSQL is a schema-free database. NewSQL is schema-fixed as well as a schema-free database.
2. It is horizontally scalable. It is horizontally scalable.
3. It possesses automatically high-availability. It possesses built-in high availability.
4. It supports cloud, on-disk, and cache storage. It fully supports cloud, on-disk, and cache storage.
5. It promotes CAP properties. It promotes ACID properties.
6. Online Transactional Processing is not supported. Online Transactional Processing is fully supported.
7. There are low-security concerns. There are moderate security concerns.
8. Use Cases: Big Data, Social Network Applications, and IOT. Use Cases: E-Commerce, Telecom industry, and Gaming.
9. Examples : DynamoDB, MongoDB, RaveenDB etc. Examples : VoltDB, CockroachDB, NuoDB etc.