From c71e8b6e9f20d7f5be32527db4a92ae19ac0d2b2 Mon Sep 17 00:00:00 2001 From: jess Date: Tue, 8 Mar 2022 03:24:15 +0900 Subject: [PATCH] feat: DisableSeeksCompaction --- goleveldb.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/goleveldb.go b/goleveldb.go index 6d301bd1d..2a04cc983 100644 --- a/goleveldb.go +++ b/goleveldb.go @@ -32,6 +32,9 @@ func NewGoLevelDB(name string, dir string) (*GoLevelDB, error) { BlockCacheCapacity: opt.GiB, // Use 64 MiB instead of default 4 MiB WriteBuffer: 64 * opt.MiB, + DisableBufferPool: false, + DisableSeeksCompaction: true, + //CompactionTableSize: 8 * opt.MiB, //CompactionTotalSize: 40 * opt.MiB, //CompactionTotalSizeMultiplierPerLevel: []float64{1, 1, 10, 100, 1000, 10000, 100000},