Open tiancheng91 opened 3 years ago
yugabyte, 多协议类型 YCQL, compatible with Apache Cassandra Query Language (CQL); YEDIS, compatible with Redis; and PostgreSQL (currently incomplete and in beta)
Cassandra
=========
## Cheatsheet
https://github.com/vrachieru/cheatsheet/blob/master/database/cassandra.cheatsheet
## csqlsh
- DESCRIBE CLUSTER;
- DESCRIBE KEYSPACES;
- SHOW VERSION;
CREATE KEYSPACE test WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; use test;
CREATE TABLE users (username text, nickname text, avatar text, PRIMARY KEY (username)); INSERT INTO users (username, nickname) VALUES ('test01', 'n_test01'); INSERT INTO users (username, nickname) VALUES ('test02', 'n_test02');
// 能写入, 会自动变为update INSERT INTO users (username, nickname) VALUES ('test01', 'n_test02');
DELETE nickname from users where username = 'test01'; DELETE from users where username = 'test01';
// 清空 TRUNCATE users; DROP TABLE users;
// create index
document api. (https://stargate.io/) https://3e215a55-49f1-4049-b02b-bcce99bd7f43-us-east1.apps.astra.datastax.com/api/rest/swagger-ui/
cassandra 商业化公司 datastax.com
https://www.scylladb.com/open-source-nosql-database/
替代品,高性能, 自己实现了用户态tcp/ip 协议栈
相关资料: https://www.infoq.cn/article/8rleTIWSBo2Y7MpfsMlW