We have a brand new table with TWCS strategy enabled. with 7 days bucket window and there is need to backfill some old data. So, when we backfill old data with "USING TIMESTAMP" will data be compacted into appropriate buckets ? Or what's the best practice ?. Also during testing I'm not seeing data not getting compacted into 1 sstable for a given window bucket. Here are the options used
compaction = {'class': 'org.apache.cassandra.db.compaction.TimeWindowCompactionStrategy', 'compaction_window_size': '7', 'compaction_window_unit': 'DAYS', 'max_threshold': '4', 'min_threshold': '4', 'unchecked_tombstone_compaction': 'true'}
I'm checking count of sstable usgin nodetool tablestats.
As part of my testing I used below options
compaction = {'class': 'org.apache.cassandra.db.compaction.TimeWindowCompactionStrategy', 'compaction_window_size': '1', 'compaction_window_unit': 'HOURS', 'max_threshold': '4', 'min_threshold': '4', 'unchecked_tombstone_compaction': 'true'}