Improve batching in badger #636
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#636
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Batch()
in bolt accumulates tx from different goroutines implicitly, so they are grouped and synced together.AFAIK badger does no such thing, so we may want add grouping in our own code.
My suggestion:
Batch
instance and flush channel.flushCh
belonging to a batch (all batches receive the same error, but make sure to handleErrTxnTooBig
on the caller -- we may fallback to a simpleSet
in this case.Related #627.
Not needed after #887