google / google/leveldb

Can leveldb be configured to auto-compact regularly?

Open
#735 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
39.4k
Forks
8.2k
PR merge metrics
No merged PRs in 30d

Description

Hello. During testing it has been noticed that leveldb will auto-compact when a user regularly stores new data. It will not auto-compact after many deletions with infrequent writes. Is there a configuration that must be toggled to enable this, or is the user expected to manually compact on frequent deletes from a large db? Is there a way to increase the rate of compaction. Alternatively, is there a recommended method for deleting data such that compaction is not needed? Certain operations, like SeekToFirst() degrade in performance very significantly without regular compaction (when deleting the first element, of course).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.