Slide 18
Slide 18 text
Cassandra
CREATE TABLE groups (
groupname text,
username text,
email text,
age int,
PRIMARY KEY (groupname, username)
)
Partition Key
Clustering Key
CONSISTENCY ALL;
SELECT * FROM demo_table WHERE id = 0;
Change consistency on query
CREATE KEYSPACE Excelsior
WITH REPLICATION = { 'replication_factor' : 3 };
Set replication factor