From 8c3f17ea4b8d8a68d1e71ece6d1b3ba3bef13e58 Mon Sep 17 00:00:00 2001 From: "will@2012" Date: Sat, 14 Sep 2024 16:28:33 +0800 Subject: [PATCH] chore: update versadb default config --- triedb/versiondb/versadb.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/triedb/versiondb/versadb.go b/triedb/versiondb/versadb.go index 95ac82d7d3..677ff5281c 100644 --- a/triedb/versiondb/versadb.go +++ b/triedb/versiondb/versadb.go @@ -29,8 +29,11 @@ func New(config *Config) *VersionDB { if config != nil { path = config.Path cfg = &versa.VersaDBConfig{ - FlushInterval: config.FlushInterval, - MaxStatesInMem: config.MaxStatesInMem, + FlushInterval: 2000, + MaxStatesInMem: config.MaxStatesInMem, + MemLowWaterMark: 40, + MemHighWaterMark: 60, + MemEvictInternal: 200, } } db, err := versa.NewVersaDB(path, cfg)