简体   繁体   English

mysql和cassandra之间的区别

[英]difference between mysql and cassandra

What is the difference between cassandra and mysql? cassandra和mysql有什么区别?

I searched using Google. 我使用Google搜索。 But I am not satisfied, and I could not understand. 但是我不满意,我听不懂。 Please tell me about it clearly. 请清楚地告诉我。

MySQL is a relational database, which supports complex, flexible queries using the SQL query language. MySQL是一个关系数据库,它使用SQL查询语言支持复杂,灵活的查询。 Essentially the relational model consists of tables (relations) which can be interlinked by keys common to multiple tables. 本质上,关系模型由表(关系)组成,这些表可以通过多个表公用的键相互链接。

Cassandra is a key-value store (like a hashmap) that lets you look up plain or structured values based on a key. Cassandra是一个键值存储(如哈希图),可让您基于键查找纯值或结构化值。 It does not support complex/flexible queries, but in return it provides greater scalability and performance. 它不支持复杂/灵活的查询,但作为回报,它提供了更大的可伸缩性和性能。 It does not use fixed predefined tables, but uses a "column-based" model, where each row of data can contain data items of various types, which don't have to be predefined. 它不使用固定的预定义表,而是使用“基于列”的模型,其中数据的每一行都可以包含各种类型的数据项,而这些数据项不必进行预定义。

Cassandra uses the Cassandra Query Language (CQL) which uses a syntax similar to SQL. Cassandra使用Cassandra查询语言(CQL),该语言使用类似于SQL的语法。 Cassandra also provides an older binary query interface via the Thrift protocol. Cassandra还通过Thrift协议提供了一个较旧的二进制查询接口。

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

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