You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When picking a file to compact into L6, we consider the L6 file's RangeDeletionBytesEstimate, prioritizing compactions that will compact L6 files with a high estimate:
We do this because when we populate RangeDeletionBytesEstimate, we'll estimate the size within the file itself to capture the fact that the range deletions delete data within the file itself (and presumably still exist due to LSM snapshots that were open when the file was created):
The compaction picking logic does not take into account PointDeletionBytesEstimate. The PointDeletionBytesEstimate doesn't have any special logic accounting for L6 sstables. My reading of the code is that it already includes the size of the tombstones themselves in the estimate, so it's already optimistic in its calculation.
We should update the compaction picking logic to also consider the PointDeletionBytesEstimate when computing the min-overlapping ratio of a compaction.
Uh oh!
There was an error while loading. Please reload this page.
When picking a file to compact into L6, we consider the L6 file's
RangeDeletionBytesEstimate
, prioritizing compactions that will compact L6 files with a high estimate:pebble/compaction_picker.go
Lines 1096 to 1107 in 431a23b
We do this because when we populate
RangeDeletionBytesEstimate
, we'll estimate the size within the file itself to capture the fact that the range deletions delete data within the file itself (and presumably still exist due to LSM snapshots that were open when the file was created):pebble/table_stats.go
Lines 422 to 424 in 431a23b
The compaction picking logic does not take into account
PointDeletionBytesEstimate
. ThePointDeletionBytesEstimate
doesn't have any special logic accounting for L6 sstables. My reading of the code is that it already includes the size of the tombstones themselves in the estimate, so it's already optimistic in its calculation.We should update the compaction picking logic to also consider the PointDeletionBytesEstimate when computing the min-overlapping ratio of a compaction.
Jira issue: PEBBLE-411
The text was updated successfully, but these errors were encountered: