Skip to content

Commit

Permalink
make pruning faster by db size cost (#10496)
Browse files Browse the repository at this point in the history
Change merge_threshold=2 is default in mdbx/lmdb. 
It makes db a bit bigger - but prune faster (update/delete ops - cause
less page-merged).
  • Loading branch information
AskAlexSharov authored May 27, 2024
1 parent e816094 commit f870c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erigon-lib/kv/mdbx/kv_mdbx.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func NewMDBX(log log.Logger) MdbxOpts {

mapSize: DefaultMapSize,
growthStep: DefaultGrowthStep,
mergeThreshold: 3 * 8192,
mergeThreshold: 2 * 8192,
shrinkThreshold: -1, // default
label: kv.InMem,
}
Expand Down

0 comments on commit f870c49

Please sign in to comment.