Skip to content

Commit

Permalink
Increase large table size and snapshot threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
andll committed Oct 10, 2024
1 parent 7b0b6f3 commit 13869ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/typed-store/src/tidehunter/th_db_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,9 @@ pub fn open_thdb(path: &Path, registry: &Registry) -> Arc<Db> {
fs::create_dir_all(path).unwrap();
let metrics = Metrics::new_in(registry);
let mut config = Config::default();
// run snapshot every 16 Gb written to wal
config.snapshot_written_bytes = 16 * 1024 * 1024 * 1024;
config.large_table_size = 32 * 1024 * 1024;
// run snapshot every 64 Gb written to wal
config.snapshot_written_bytes = 64 * 1024 * 1024 * 1024;
let config = Arc::new(config);
let db = Db::open(path, config, metrics).unwrap();
let db = Arc::new(db);
Expand Down

0 comments on commit 13869ef

Please sign in to comment.