Skip to content

Commit

Permalink
Add LCS and row cache
Browse files Browse the repository at this point in the history
ref:
 - #96
 - #94
  • Loading branch information
michaelsembwever committed May 9, 2017
1 parent 7032dde commit ada75de
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/main/resources/db/cassandra/002_table_properties.cql
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

-- Optimal table properties

ALTER TABLE cluster
WITH compaction = {'class': 'LeveledCompactionStrategy'}
AND caching = {'rows_per_partition': 'ALL'};

ALTER TABLE repair_unit
WITH compaction = {'class': 'LeveledCompactionStrategy'}
AND caching = {'rows_per_partition': 10};

ALTER TABLE repair_run
WITH compaction = {'class': 'LeveledCompactionStrategy'}
AND caching = {'rows_per_partition': 10};

ALTER TABLE repair_run_by_cluster
WITH compaction = {'class': 'LeveledCompactionStrategy'}
AND caching = {'rows_per_partition': 10};

ALTER TABLE repair_run_by_unit
WITH compaction = {'class': 'LeveledCompactionStrategy'}
AND caching = {'rows_per_partition': 10};

ALTER TABLE repair_segment
WITH compaction = {'class': 'LeveledCompactionStrategy'};

ALTER TABLE repair_segment_by_run_id
WITH compaction = {'class': 'LeveledCompactionStrategy'}
AND caching = {'rows_per_partition': 10};

ALTER TABLE repair_schedule
WITH compaction = {'class': 'LeveledCompactionStrategy'}
AND caching = {'rows_per_partition': 10};

ALTER TABLE repair_schedule_by_cluster_and_keyspace
WITH compaction = {'class': 'LeveledCompactionStrategy'}
AND caching = {'rows_per_partition': 10};

ALTER TABLE repair_id
WITH compaction = {'class': 'LeveledCompactionStrategy'}
AND caching = {'rows_per_partition': 10};

0 comments on commit ada75de

Please sign in to comment.