Slide 7
Slide 7 text
Basics : Simple tables (with cql3)
CREATE TABLE user (
id uuid,
firstname text,
lastname text,
birthdate timestamp,
PRIMARY KEY (id)
);
CREATE TABLE user (…)
WITH
bloom_filter_fp_chance = 0.1
AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
AND compaction = {'min_threshold':'4', 'class':'LeveledCompactionStrategy', 'max_threshold': '32'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND read_repair_chance = 0.0;
CREATE TABLE device (
id uuid,
platform text,
lastvisit timestamp,
PRIMARY KEY ((id,platform))
);
Table parameters
PartitionKey