mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 09:00:35 +00:00
During compaction (SSTable writing), maintain bounded min-heaps (one per large_data_type) that collect the top-N above-threshold records. On stream end, drain all five heaps into a single LargeDataRecords array and write it into the SSTable's scylla metadata component. Five separate heaps are used: - partition_size, row_size, cell_size: ordered by value (size bytes) - rows_in_partition, elements_in_collection: ordered by elements_count A new config option 'compaction_large_data_records_per_sstable' (default 10) controls the maximum number of records kept per type.