From 1225e5a5cb6328ea152b773970ae537b05288a79 Mon Sep 17 00:00:00 2001 From: abbycin Date: Sun, 10 Aug 2025 18:00:49 +0800 Subject: [PATCH] better config --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f260b2d..a63bcde 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,8 +62,9 @@ fn main() { let mut opt = Options::new(path); opt.sync_on_write = false; opt.tmp_store = true; - // currently we don't have prefix encode, so enlarge the inline size to avoid indirection + // make sure there's no remote indirection opt.max_inline_size = 4096; + opt.cache_capacity = 3 << 30; // this is very important for large key-value store let db = Mace::new(opt.validate().unwrap()).unwrap(); let value = Arc::new(vec![b'0'; args.value_size]);