From 13869ef314b9f951a3709848c83c228bed248de7 Mon Sep 17 00:00:00 2001 From: andll Date: Wed, 9 Oct 2024 17:05:31 -0700 Subject: [PATCH] Increase large table size and snapshot threshold --- crates/typed-store/src/tidehunter/th_db_map.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/typed-store/src/tidehunter/th_db_map.rs b/crates/typed-store/src/tidehunter/th_db_map.rs index 4bc2f2ac39ce47..6315f7e1929a92 100644 --- a/crates/typed-store/src/tidehunter/th_db_map.rs +++ b/crates/typed-store/src/tidehunter/th_db_map.rs @@ -299,8 +299,9 @@ pub fn open_thdb(path: &Path, registry: &Registry) -> Arc { 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);