Reduce bloom filter size

This commit is contained in:
Andrea Cavalli 2022-04-05 01:07:50 +02:00
parent 24cf7ea58d
commit 02cd99a963

View File

@ -204,7 +204,7 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
final BlockBasedTableConfig tableOptions = new BlockBasedTableConfig();
if (!databaseOptions.lowMemory()) {
final BloomFilter bloomFilter = new BloomFilter(10);
final BloomFilter bloomFilter = new BloomFilter(3);
tableOptions.setFilterPolicy(bloomFilter);
tableOptions.setOptimizeFiltersForMemory(true);
tableOptions.setVerifyCompression(false);