yahoo / HaloDB

A fast, log structured key-value store.
https://yahoodevelopers.tumblr.com/post/178250134648/introducing-halodb-a-fast-embedded-key-value
Apache License 2.0
508 stars 100 forks source link

Add Manual Compaction to HaloDB (#45) #48

Open scottcarey opened 4 years ago

scottcarey commented 4 years ago

Add the 'forceCompaction' method to HaloDB, which takes a compactionThreshold value and will trigger compaction on all files that have stale data above the threshold.

Additionally clean up how pauseCompaction() works so that it awaits pending compactions.

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.