Skip to content

Support customizing the rebalance threshold #422

@cenkalti

Description

@cenkalti

bbolt/node.go

Lines 420 to 424 in 838586a

// Ignore if node is above threshold (25%) and has enough keys.
var threshold = n.bucket.tx.db.pageSize / 4
if n.size() > threshold && len(n.inodes) > n.minKeys() {
return
}

How this number was chosen?

What happens if we make it configurable and increase or decrease it?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions