I use CQLSSTableWriter to write corresponding SSTables of my data :
writer.addRow(1, "test", ...);
The data is sorted by partition key, and clustering key, then I call addRow for each line of sorted data.
The data for a given partition is written in a single SSTables (or two at maximum).
Two questions :
There is no compaction strategy needed with the CQLSSTableWriter builder(). Is that normal ?
The already created table has a LCS compaction. But CQLSSTableWriter doesn't come with any strategy defined. So regarding that after ingestion the data never change (in my case !), and after I have ingested SSTables to Cassandra with sstablesloader, does it make sense that I prevent any compaction from running ? Or do I always need to run a compaction after every ingestion with sstablesloader ?
Thanks to make it a bit more clearer !