Set target file size multiplier to 2, to reduce write amplification

This commit is contained in:
Andrea Cavalli 2022-05-01 15:48:08 +02:00
parent d9c2e8a5f9
commit f63b70ab9d

View File

@ -358,7 +358,7 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
columnFamilyOptions.setTargetFileSizeBase(64 * SizeUnit.MB);
// // For each level up, the threshold is multiplied by the factor target_file_size_multiplier
// // (but the default value is 1, which means that the maximum sstable of each level is the same).
columnFamilyOptions.setTargetFileSizeMultiplier(1);
columnFamilyOptions.setTargetFileSizeMultiplier(2);
descriptors.add(new ColumnFamilyDescriptor(column.name().getBytes(StandardCharsets.US_ASCII), columnFamilyOptions));
}