Default to 256KiB block size

This commit is contained in:
Andrea Cavalli 2022-04-04 10:27:38 +02:00
parent c4e696f359
commit 32dc615f88

View File

@ -210,7 +210,8 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
.setChecksumType(ChecksumType.kxxHash)
.setBlockCacheCompressed(optionsWithCache.compressedCache())
.setBlockCache(optionsWithCache.standardCache())
.setBlockSize(16 * 1024); // 16KiB
// Spinning disks: 64KiB to 256KiB (also 512KiB). SSDs: 16KiB
.setBlockSize(256 * 1024);
//columnOptions.setLevelCompactionDynamicLevelBytes(true);
columnOptions.setTableFormatConfig(tableOptions);