diff options
Diffstat (limited to 'include/leveldb/options.h')
-rw-r--r-- | include/leveldb/options.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/leveldb/options.h b/include/leveldb/options.h index 83a1ef39a4..976e38122a 100644 --- a/include/leveldb/options.h +++ b/include/leveldb/options.h @@ -112,6 +112,18 @@ struct Options { // Default: 16 int block_restart_interval; + // Leveldb will write up to this amount of bytes to a file before + // switching to a new one. + // Most clients should leave this parameter alone. However if your + // filesystem is more efficient with larger files, you could + // consider increasing the value. The downside will be longer + // compactions and hence longer latency/performance hiccups. + // Another reason to increase this parameter might be when you are + // initially populating a large database. + // + // Default: 2MB + size_t max_file_size; + // Compress blocks using the specified compression algorithm. This // parameter can be changed dynamically. // |