better config

This commit is contained in:
abbycin 2025-08-10 18:00:49 +08:00
parent 46f0ffc1e1
commit 1225e5a5cb
Signed by: abby
GPG Key ID: B636E0F0307EF8EB

View File

@ -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]);