From 58cdc9e1f9442330935556ba57be7743f98f8200 Mon Sep 17 00:00:00 2001 From: Yeabsira Mekonnen Date: Fri, 20 Dec 2024 01:54:16 -0800 Subject: [PATCH] Tweaking limits on level0 files (#10) Co-authored-by: Jason Major --- db/dbformat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/dbformat.h b/db/dbformat.h index a1c30ed88c..59040a183f 100644 --- a/db/dbformat.h +++ b/db/dbformat.h @@ -28,10 +28,10 @@ static const int kNumLevels = 7; static const int kL0_CompactionTrigger = 4; // Soft limit on number of level-0 files. We slow down writes at this point. -static const int kL0_SlowdownWritesTrigger = 8; +static const int kL0_SlowdownWritesTrigger = 16; // Maximum number of level-0 files. We stop writes at this point. -static const int kL0_StopWritesTrigger = 12; +static const int kL0_StopWritesTrigger = 64; // Maximum level to which a new compacted memtable is pushed if it // does not create overlap. We try to push to level 2 to avoid the