Level / levelup

A wrapper for abstract-leveldown compliant stores, for Node.js and browsers.
MIT License
4.09k stars 265 forks source link

compress(?) or trunk(?) or defragment(?) #706

Closed vinnitu closed 3 years ago

vinnitu commented 3 years ago

Hello!

I use timestamp as a key. But after analyze date I del ranges of data but seems data directory become even bigger in size...

What can I do implicity to compress/trunk/defragment database after cleanup operations?

vweevers commented 3 years ago

Assuming you're using leveldown, you're looking for compaction: https://github.com/Level/leveldown#leveldown_compactRange