The concept of compaction is used for different kinds of operations inCassandra, the common thing about these operations is that it takes oneor more SSTables and output new SSTables. The types of compactions are:

It is possible to only compact a given sub range - this could beuseful if you know a token that has been misbehaving - eithergathering many updates or many deletes.(nodetool compact -st x -et y) will pick all SSTables containing therange between x and y and issue a compaction for those SSTables. ForSTCS this will most likely include all SSTables but with LCS it canissue the compaction for a subset of the SSTables. With LCS theresulting sstable will end up in L0.




Compaction Ppt Download