Notes
Cassandra Compaction Strategies
When setting up Cassandra tables, you should specify the compaction strategy Cassandra should use to store data internally. To do so, just add
WITH compaction = { 'class': '<compactionName>' }
to an ALTER TABLE or CREATE TABLE command.
| Name | Acronym | Used For |
|---|---|---|
| SizeTieredCompactionStrategy | STCS | Insert-Heavy Tables |
| LeveledCompactionStrategy | LCS | Read-Heavy Tables |
| DateTieredCompactionStrategy | DTCS | Time Series Data |