diff --git a/sstables/sstables.cc b/sstables/sstables.cc index a2d74355bc..fccae9a906 100644 --- a/sstables/sstables.cc +++ b/sstables/sstables.cc @@ -1177,9 +1177,11 @@ future<> sstable::write_components(const memtable& mt) { _components.insert(component_type::CRC); } + constexpr size_t sstable_buffer_size = 64*1024; + // TODO: Add compression support by having a specialized output stream. - auto w = make_shared(_data_file, 4096, checksum_file); - auto index = make_shared(_index_file, 4096); + auto w = make_shared(_data_file, sstable_buffer_size, checksum_file); + auto index = make_shared(_index_file, sstable_buffer_size); prepare_summary(_summary, mt); auto filter_fp_chance = mt.schema()->bloom_filter_fp_chance();