Loading the code workspace…
Write a C program that implements size-tiered compaction by merging two SSTables.
Requirements:
Cassandra defaults to size-tiered compaction while RocksDB defaults to leveled compaction, and choosing between them is the single biggest tuning decision RocksDB's own tuning guide walks operators through. Getting it wrong in production shows up as either unbounded read amplification — queries checking dozens of SSTables — or punishing write amplification that burns through SSD write endurance.