简体   繁体   English

带有分片 (Vitess) 的 mysql 会比任何没有 SQL 的数据库更快吗?

[英]Would mysql with sharding (Vitess) be faster than any no SQL database?

I have been trying to understand why nosql db is considered to be faster than RDBMS.我一直试图理解为什么 nosql db 被认为比 RDBMS 更快。 I understand that nosql dbs don't follow the ACID properties but instead follows BASE principle which is the reason why nosql is able to horizontally scale.我知道 nosql dbs 不遵循 ACID 属性,而是遵循 BASE 原则,这就是 nosql 能够水平扩展的原因。

What I am trying to understand here is that if there is a big difference in similar queries.我在这里试图理解的是,如果类似的查询存在很大差异。 For instance let's say we have a search which searches all the matching users in our db.例如,假设我们有一个搜索,它在我们的数据库中搜索所有匹配的用户。 We have same data in MySQL as well as in any nosql db and let's assume that for nosql we have just 1 shard.我们在 MySQL 和任何 nosql 数据库中都有相同的数据,让我们假设对于 nosql 我们只有 1 个分片。 So would there still be a difference in the speed of the query or would it be the same?那么查询速度是否仍然存在差异或相同?

With disks getting faster and cheaper, the speed advantage may not be significant enough to make a difference.随着磁盘越来越快、越来越便宜,速度优势可能不足以产生影响。

However, you can do a lot more with systems like Vitess in terms of transactions, joins and indexes.但是,您可以使用 Vitess 等系统在事务、连接和索引方面做更多事情。 At the same time, you can continue to scale like NoSQL systems.同时,您可以像 NoSQL 系统一样继续扩展。 For this reason, I think Vitess is an overall better trade-off.出于这个原因,我认为 Vitess 总体上是一个更好的权衡。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM