key value store - In Kyoto Cabinet Database using File Hash Database, how can avoid file size increasing? -
i using follow open:
db.open("db.kch#tune_defrag=10000", db.owriter | db.ocreate)
i putting , removing elements. @ end of execution, database "empty", count() function returns 0, because remove elements. why file size increase when repeat test? possible run "garbage collector" clean removed registers? if execute same test 100 times, have 500 mb size database, have 2 records.
i tried put "tune_defrag=10000" think didn't work fine.
obs.: register less 1k, don't understand why registers take space in disk.
thanks help
try this:
db.kch#dfunit=8
that means kc runs defrag every 8 fragmentation detected, , 8 recommended mikio.
available options listed here, use polish.
Comments
Post a Comment