Skip to content

Commit

Permalink
Fix file names and 002 migration file
Browse files Browse the repository at this point in the history
  • Loading branch information
adejanovski committed May 29, 2017
1 parent 46d3dc3 commit 33be3fa
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 227 deletions.

This file was deleted.

134 changes: 0 additions & 134 deletions src/main/resources/db/cassandra/002_switch_to_uuids.cql

This file was deleted.

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 33be3fa

Please sign in to comment.