Reduce L0 files

This commit is contained in:
Andrea Cavalli 2022-05-02 01:16:46 +02:00
parent 22f0711ab8
commit 404fe03c14

View File

@ -232,7 +232,7 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
} else {
// ArangoDB uses a value of 2: https://www.arangodb.com/docs/stable/programs-arangod-rocksdb.html
// Higher values speed up writes, but slow down reads
columnFamilyOptions.setLevel0FileNumCompactionTrigger(4);
columnFamilyOptions.setLevel0FileNumCompactionTrigger(2);
}
if (isDisableSlowdown()) {
columnFamilyOptions.setLevel0SlowdownWritesTrigger(-1);