October 2018
Beginner to intermediate
348 pages
10h
English
Since version 2.1, Apache Cassandra has delivered a compaction strategy that helps with optimizing file storage for time-series use cases. Originally, DateTieredCompactionStrategy was delivered as a way to optimize data storage by time. With this strategy in place, SSTable files were sorted by relative time. This was efficient, as the idea with time-series models is that the application really only cares about specific date ranges of data. This allowed data for specific dates/times to be queried, while older, irrelevant data was ignored.
With Cassandra 3.10 came the advent of TimeWindowCompactionStrategy. This was an improvement over the date-tiered strategy in several areas (and was less ...