Skip to content

Commit

Permalink
Change max_loaded_entries fraction to 1/2
Browse files Browse the repository at this point in the history
  • Loading branch information
andll committed Oct 17, 2024
1 parent aa8e859 commit 7b00772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/typed-store/src/tidehunter/th_db_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ fn thdb_config(const_spaces: usize) -> Config {
let mut config = Config::default();
modify_large_table_size(&mut config);
modify_frag_size(&mut config);
config.max_loaded_entries = config.large_table_size / 1024 / 2;
config.large_table_size += const_spaces;
// config.max_loaded_entries = config.large_table_size / 1024 / 2;
// run snapshot every 64 Gb written to wal
config.snapshot_written_bytes = 64 * 1024 * 1024 * 1024;
config.max_dirty_keys = 2 * 1024;
Expand Down

0 comments on commit 7b00772

Please sign in to comment.