From db74f0dffa626fbd6575308d154161020b43715d Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Fri, 30 Oct 2020 17:09:33 -0600 Subject: [PATCH] Increase RBF WAL write cache size to 1MB. Previously we dropped the cache size to 64KB but that seems much too low. Write performance suffers considerably. --- rbf/cfg/cfg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbf/cfg/cfg.go b/rbf/cfg/cfg.go index 0e519569a..8bf8a2162 100644 --- a/rbf/cfg/cfg.go +++ b/rbf/cfg/cfg.go @@ -48,7 +48,7 @@ func NewDefaultConfig() *Config { MaxSize: DefaultMaxSize, FsyncEnabled: true, CheckpointEveryDur: 10 * time.Second, - MaxWALSegmentFileSize: 1 << 16, + MaxWALSegmentFileSize: 1 << 20, } }