Metabase batching with buckets cache #1694
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#1694
Loading…
Add table
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?
Is your feature request related to a problem? Please describe.
In #1688 and #1686 search for objects in the metabase was optimized by caching buckets within a single transaction. It is proposed to make the same optimization for write batching.
Describe the solution you'd like
Add new method in metabase (
CustomBatch
,BatchWithCache
,Batch2
,BatchEx
- I'm not good at naming :( ) with signaturefunc (db *DB) BatchEx(fn func(*bucketCache, *Tx) error) error
with the same logic as914ccefafb/db.go (L966)
but use one bucketCache for alldb.batch.calls
.Replace
db.boltDB.Batch
calls with new method calls.Check if this will lead to better write performance.