conservatively make the bloom filter really big (should behave well down to 100 byte keys, waste ram otherwise...)

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@1238 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
sears 2010-10-05 16:55:29 +00:00
parent 31cafbef6c
commit ccf3895595

View file

@ -174,7 +174,7 @@ void* memMergeThread(void*arg)
#endif
const int64_t min_bloom_target = 1000000000;
//create a new tree
diskTreeComponent * c1_prime = new diskTreeComponent(xid, ltable->internal_region_size, ltable->datapage_region_size, ltable->datapage_size, stats, (stats->target_size < min_bloom_target ? min_bloom_target : stats->target_size) / 1000);
diskTreeComponent * c1_prime = new diskTreeComponent(xid, ltable->internal_region_size, ltable->datapage_region_size, ltable->datapage_size, stats, (stats->target_size < min_bloom_target ? min_bloom_target : stats->target_size) / 100);
ltable->set_tree_c1_prime(c1_prime);