Skip to content

Commit

Permalink
854: set the default bucket size of hashspdb to be 400k for best memo…
Browse files Browse the repository at this point in the history
…ry use and performance
  • Loading branch information
ayulas committed Mar 3, 2024
1 parent 3650775 commit 7575583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion memtable/hash_spdb_rep.cc
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ static std::unordered_map<std::string, OptionTypeInfo> hash_spdb_factory_info =

class HashSpdbRepFactory : public MemTableRepFactory {
public:
explicit HashSpdbRepFactory(size_t hash_bucket_count = 1000000,
explicit HashSpdbRepFactory(size_t hash_bucket_count = 400000,
bool use_merge = true) {
options_.hash_bucket_count = hash_bucket_count;
options_.use_merge = use_merge;
Expand Down
2 changes: 1 addition & 1 deletion tools/db_bench_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,7 @@ DEFINE_int64(multiread_stride, 0,
DEFINE_bool(multiread_batched, false, "Use the new MultiGet API");

DEFINE_string(memtablerep, "hash_spdb", "");
DEFINE_int64(hash_bucket_count, 1000000, "hash bucket count");
DEFINE_int64(hash_bucket_count, 400000, "hash bucket count");
DEFINE_bool(use_plain_table, false,
"if use plain table instead of block-based table format");
DEFINE_bool(use_cuckoo_table, false, "if use cuckoo table format");
Expand Down

0 comments on commit 7575583

Please sign in to comment.