SwayDB
SwayDB copied to clipboard
Should refresh occur on Segments that were copied into lower Level during compaction?
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.