-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skipping Levels during compaction #11
Comments
Another reason this is needed is because SwayDB implements a multi folder structure where all Segments are placed in their dedicated Levels folder instead of a flat single folder for all Multiple folders were chosen for the following advantages:
Multiple folders also bring in this one disadvantage which this issue can resolve.
Implementation of this issue will resolve wasted IO during copy by pushing |
#84 should be considered when implementing this. |
Implemented on master with a new compaction implementation. Will be released in v0.9. |
Segments that do not overlap with existing Segment in the Level should be skipped and pushed to the next Level when pushForward flag is set to true in the configuration.
In some cases this can reduce IO and increase overall database performance.
The logic to skip Segments is required here. Currently Segments are forwarded only when both the current Level and next Level are empty.
The text was updated successfully, but these errors were encountered: