From b1da0dfb7784e843ce3b8d6fe1e5257413990c25 Mon Sep 17 00:00:00 2001 From: Peter Mattis Date: Tue, 18 Oct 2016 14:58:50 -0400 Subject: [PATCH] storage/engine/rocksdb: disable whole_key_filtering Disable BlockBasedTableOptions::whole_key_filtering which adds a bloom filter entry for the entire key. This option doubles the size of our bloom filters, but is only used to speed up Gets which we don't use. See #10050 --- pkg/storage/engine/rocksdb/db.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/storage/engine/rocksdb/db.cc b/pkg/storage/engine/rocksdb/db.cc index e78b24e9b425..4dccf5cccfb0 100644 --- a/pkg/storage/engine/rocksdb/db.cc +++ b/pkg/storage/engine/rocksdb/db.cc @@ -1395,6 +1395,10 @@ DBStatus DBOpen(DBEngine **db, DBSlice dir, DBOptions db_opts) { // Increasing block_size decreases memory usage at the cost of // increased read amplification. table_options.block_size = db_opts.block_size; + // Disable whole_key_filtering which adds a bloom filter entry for + // the "whole key", doubling the size of our bloom filters. This is + // used to speed up Get operations which we don't use. + table_options.whole_key_filtering = false; // Use the rocksdb options builder to configure the base options // using our memtable budget.