SwayDB
SwayDB copied to clipboard
Refreshing Segments should run only on expired Segment blocks
To clear expired key-values compaction invokes refresh on the Segment. Refresh only needs to occurs on Segment blocks which contain expired key-values all other blocks can be transferred directly to the new Segment without reading it into the heap.