Skip to content

Commit

Permalink
badger/lmdb/mdbx: increase default limits.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Dec 22, 2024
1 parent f731c34 commit 98cbffe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion badger/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (b *BadgerBackend) Init() error {
if b.MaxLimit != 0 {
b.MaxLimitNegentropy = b.MaxLimit
} else {
b.MaxLimit = 500
b.MaxLimit = 1000
if b.MaxLimitNegentropy == 0 {
b.MaxLimitNegentropy = 16777216
}
Expand Down
2 changes: 1 addition & 1 deletion lmdb/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (b *LMDBBackend) Init() error {
if b.MaxLimit != 0 {
b.MaxLimitNegentropy = b.MaxLimit
} else {
b.MaxLimit = 500
b.MaxLimit = 1500
if b.MaxLimitNegentropy == 0 {
b.MaxLimitNegentropy = 16777216
}
Expand Down
2 changes: 1 addition & 1 deletion mdbx/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (b *MDBXBackend) Init() error {
if b.MaxLimit != 0 {
b.MaxLimitNegentropy = b.MaxLimit
} else {
b.MaxLimit = 500
b.MaxLimit = 1400
if b.MaxLimitNegentropy == 0 {
b.MaxLimitNegentropy = 16777216
}
Expand Down

0 comments on commit 98cbffe

Please sign in to comment.