SwayDB icon indicating copy to clipboard operation
SwayDB copied to clipboard

Should refresh occur on Segments that were copied into lower Level during compaction?

Open simerplaha opened this issue 4 years ago • 0 comments

Context

Each Level can have it own segment configuration with custom compression, fileSize, binarySearch, hashIndex, bloomFilter, compaction configurations etc.

Question

A Segment that does not have any overlapping key-values with lower level is copied to lower levels during compaction without performing any read IO.

Should these copied Segments refresh/re-create themselves with the configurations of the new Level?

Current solution

The default pre-configured data-types like Map use the same configuration for all Levels so the Segment refresh/re-create is disabled to save IO.

simerplaha avatar Jan 28 '21 14:01 simerplaha