Closed dspicher closed 1 year ago
that is a bit large indeed 🙃
i suspect that database has seen quite some writes earlier on?
can you make a backup copy, then try this on one of the copies?
db = plyvel.DB('.')
db.compact_range()
db.close()
Yeah, I already tried this, should have mentioned it. This induces a small diff in .log
and MANIFEST
files, but no big change in the serialization size.
what happens if you manually copy the contents to another database, e.g. something like this?
db1 = plyvel.DB('.')
db2 = plyvel.DB('../new', create_if_missing=True, error_if_exists=True)
for key, value in db1:
db2.put(key, value)
db1.close()
db2.close()
This did the trick, we are now down to 50KB :partying_face:
Thank you so much for the help! :+1:
cool, still weird. don't think it's a plyvel issue though.
Absolutely not, the DB was not created with plyvel
, hence my apology in the first message :sweat_smile:
Sorry for posting this general LevelDB question here.
I have a tiny LevelDB:
These 25'000 bytes are backed up by 44
.ldb
files totalling 69M.Is this enormous overhead in any way expected?