wbolster / plyvel

Plyvel, a fast and feature-rich Python interface to LevelDB
https://plyvel.readthedocs.io/
Other
531 stars 76 forks source link

compact_range ineffective? #150

Open mrx23dot opened 1 year ago

mrx23dot commented 1 year ago

Is it me or db.compact_range() doesn't do anything?

It returns instantly on 10GB database, and it's far from optimal content wise. (I get 2x speed up after iterating end recreating it)

mrx23dot commented 1 year ago

or is it async? there is no doc here https://github.com/google/leveldb/blob/main/doc/index.md

from changelog: 'LevelDB uses for compaction calls back into Python code in that case.' although it was regarding comparators