什么时候应该使用NoSQL数据库而不是关系数据库?可以在同一站点上同时使用两者吗? [英] When should I use a NoSQL database instead of a relational database? Is it okay to use both on the same site?

查看:85
本文介绍了什么时候应该使用NoSQL数据库而不是关系数据库?可以在同一站点上同时使用两者吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用NoSQL数据库有什么优势?我最近阅读了很多关于它们的文章,但是我仍然不确定为什么要实现它,以及在什么情况下我想使用它们.

What are the advantages of using NoSQL databases? I've read a lot about them lately, but I'm still unsure why I would want to implement one, and under what circumstances I would want to use one.

推荐答案

关系数据库强制执行 ACID .因此,您将拥有基于架构的面向事务的数据存储.它已被证明并适合99%的实际应用.您几乎可以使用关系数据库执行任何操作.

Relational databases enforces ACID. So, you will have schema based transaction oriented data stores. It's proven and suitable for 99% of the real world applications. You can practically do anything with relational databases.

但是,在涉及大量高可用性数据存储时,速度和扩展性受到限制.例如,Google和Amazon在大数据中心中存储了TB级的数据.由于RDBM的阻塞/架构/事务性质,在这些情况下查询和插入不起作用.这就是为什么他们实现自己的数据库(实际上是键值存储)以获取巨大的性能和可伸缩性的原因.

But, there are limitations on speed and scaling when it comes to massive high availability data stores. For example, Google and Amazon have terabytes of data stored in big data centers. Querying and inserting is not performant in these scenarios because of the blocking/schema/transaction nature of the RDBMs. That's the reason they have implemented their own databases (actually, key-value stores) for massive performance gain and scalability.

NoSQL数据库已经存在很长时间了-只是这个术语是新的.一些示例是图形,对象,列,XML和文档数据库.

NoSQL databases have been around for a long time - just the term is new. Some examples are graph, object, column, XML and document databases.

关于您的第二个问题:是否可以在同一网站上同时使用两者?

For your 2nd question: Is it okay to use both on the same site?

为什么不呢?两者都有不同的用途吧?

Why not? Both serves different purposes right?

这篇关于什么时候应该使用NoSQL数据库而不是关系数据库?可以在同一站点上同时使用两者吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆