Skip to content

Commit

Permalink
Added more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
UlyanaAndrukhiv committed Aug 29, 2024
1 parent f039d15 commit b6c8040
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage/pebble/registers_pruner.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ const (
DefaultPruneTickerInterval = 10 * time.Minute
)

// TODO: This configuration should be changed after testing it with real network data for better performance.
const (
// pruneIntervalRatio represents an additional percentage of pruneThreshold which is used to calculate pruneInterval
pruneIntervalRatio = 0.1
pruneIntervalRatio = 0.1 // 10%
// deleteItemsPerBatch defines the number of database keys to delete in each batch operation.
// This value is used to control the size of deletion operations during pruning.
deleteItemsPerBatch = 256
Expand Down

0 comments on commit b6c8040

Please sign in to comment.