Skip to content

Commit

Permalink
[db] Fix block cache capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind committed Nov 2, 2022
1 parent b77bfff commit 48f030e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/sui-storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ pub fn default_db_options(
.set_compression_type(rocksdb::DBCompressionType::None);

let mut point_lookup = db_options.clone();
point_lookup.options.optimize_for_point_lookup(1024 * 1024);
point_lookup
.options
.optimize_for_point_lookup(64 /* 64MB (default is 8) */);
point_lookup.options.set_memtable_whole_key_filtering(true);

(db_options, point_lookup)
Expand Down

0 comments on commit 48f030e

Please sign in to comment.