Skip to content

Commit

Permalink
Merge pull request basho#37 from basho/mv-calc-bloom-segment
Browse files Browse the repository at this point in the history
raise bits per key from 10 to 16.  reduces false positive rate.
  • Loading branch information
Jesse Williamson committed Aug 20, 2012
2 parents 5815f9a + 11ad358 commit 1864ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c_src/eleveldb.cc
Expand Up @@ -170,10 +170,10 @@ ERL_NIF_TERM parse_open_option(ErlNifEnv* env, ERL_NIF_TERM item, leveldb::Optio
}
else if (option[0] == ATOM_USE_BLOOMFILTER)
{
// By default, we want to use a 10-bit-per-key bloom filter on a
// By default, we want to use a 16-bit-per-key bloom filter on a
// per-table basis. We only disable it if explicitly asked. Alternatively,
// one can provide a value for # of bits-per-key.
unsigned long bfsize = 10;
unsigned long bfsize = 16;
if (option[1] == ATOM_TRUE || enif_get_ulong(env, option[1], &bfsize))
{
opts.filter_policy = leveldb::NewBloomFilterPolicy(bfsize);
Expand Down

0 comments on commit 1864ccd

Please sign in to comment.