Skip to content

Commit

Permalink
Merge pull request #10060 from petermattis/pmattis/disable-whole-key-…
Browse files Browse the repository at this point in the history
…filtering

storage/engine/rocksdb: disable whole_key_filtering
  • Loading branch information
petermattis authored Oct 18, 2016
2 parents f30fa7a + b1da0df commit 1db13d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/storage/engine/rocksdb/db.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1db13d9

Please sign in to comment.