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
Ln sst1[a...b e...f]
Ln+1 sst2[a...b] sst3[c...d] sst4[e...f]
Assume a level compaction picks sst1, sst2, sst3 and sst4 as source ssts, we can see sst3's key range is a gap in sst1, but their ranges overlaps. And sst3's content will be unnecessarily re-written in level n+1, this will cause write amplification.
In TiDB the gap between index keys and row keys for the same row is broad, and will cause extra write amplification.
zhangjinpeng87
changed the title
Feature request: level compaction skip some sst to reduce write amplification
PCP-20: level compaction skip some sst to reduce write amplification
Nov 6, 2019
zhangjinpeng87
changed the title
PCP-20: level compaction skip some sst to reduce write amplification
PCP-27: level compaction skip some sst to reduce write amplification
Nov 6, 2019
Description
Ln sst1[a...b e...f]
Ln+1 sst2[a...b] sst3[c...d] sst4[e...f]
Assume a level compaction picks sst1, sst2, sst3 and sst4 as source ssts, we can see sst3's key range is a gap in sst1, but their ranges overlaps. And sst3's content will be unnecessarily re-written in level n+1, this will cause write amplification.
In TiDB the gap between index keys and row keys for the same row is broad, and will cause extra write amplification.
Difficulty
Score
Mentor(s)
Recommended Skills
The text was updated successfully, but these errors were encountered: