gotime/cassandra_object — Issue #10: Update Column Family Settings
Author: ddkothari
Created: 2012-01-10 03:03:06+00:00
State: open

Add "update_column_family" task for migrations:

schema/migration.rb
tasks/column_family.rb

You should be able to change the following settings through migrations:

UPDATE COLUMN FAMILY Places WITH compaction_strategy=LeveledCompactionStrategy AND compaction_strategy_options={sstable_size_in_mb: 10};

UPDATE COLUMN FAMILY Places WITH compression_options={sstable_compression:SnappyCompressor};