mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
ethdb/pebble: disable seek compaction for Pebble
This commit is contained in:
parent
344d01e2be
commit
4f54cc95bc
1 changed files with 4 additions and 0 deletions
|
|
@ -300,6 +300,10 @@ func New(file string, cache int, handles int, namespace string, readonly bool) (
|
|||
// debt will be less than 1GB, but with more frequent compactions scheduled.
|
||||
L0CompactionThreshold: 2,
|
||||
}
|
||||
// Disable seek compaction explicitly. Check https://github.com/ethereum/go-ethereum/pull/20130
|
||||
// for more details.
|
||||
opt.Experimental.ReadSamplingMultiplier = -1
|
||||
|
||||
// These two settings define the conditions under which compaction concurrency
|
||||
// is increased. Specifically, one additional compaction job will be enabled when:
|
||||
// - there is one more overlapping sub-level0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue