And Or
2017-02-17 03:30:26 UTC
In our production code, we use LevelDb to store protobuf messages in
key-value format.
I am seeing that the amount of data we insert into LevelDb is not matching
its on-disk size. For example, I have a test with key size set to 45bytes,
value size set to 3750bytes, and a total of 5600 records. All keys are
unique. Also, for every record insertion, we add a special record with key
"txn_identifier" and value a simple integer of a few bytes. For this
experiment, total index size should come to around 21Mb for this workload.
but I am seeing an ondisk size of 76Mb.
Upon restart of our program the index on-disk size drops to 21Mb. This
restart essentially amounts to a re-open of the index. After restart some
files in the index directory are disappearing. My guess is that for some
reason compacted ldb files are still being kept around, but a restart of
the index is deleting them.
Has anyone seen this behaviour? Any help is appreciated.
key-value format.
I am seeing that the amount of data we insert into LevelDb is not matching
its on-disk size. For example, I have a test with key size set to 45bytes,
value size set to 3750bytes, and a total of 5600 records. All keys are
unique. Also, for every record insertion, we add a special record with key
"txn_identifier" and value a simple integer of a few bytes. For this
experiment, total index size should come to around 21Mb for this workload.
but I am seeing an ondisk size of 76Mb.
Upon restart of our program the index on-disk size drops to 21Mb. This
restart essentially amounts to a re-open of the index. After restart some
files in the index directory are disappearing. My guess is that for some
reason compacted ldb files are still being kept around, but a restart of
the index is deleting them.
Has anyone seen this behaviour? Any help is appreciated.
--
You received this message because you are subscribed to the Google Groups "leveldb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leveldb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "leveldb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leveldb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.