Skip to content

Commit 58cdc9e

Browse files
Tweaking limits on level0 files (#10)
Co-authored-by: Jason Major <[email protected]>
1 parent 98474d5 commit 58cdc9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

db/dbformat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ static const int kNumLevels = 7;
2828
static const int kL0_CompactionTrigger = 4;
2929

3030
// Soft limit on number of level-0 files. We slow down writes at this point.
31-
static const int kL0_SlowdownWritesTrigger = 8;
31+
static const int kL0_SlowdownWritesTrigger = 16;
3232

3333
// Maximum number of level-0 files. We stop writes at this point.
34-
static const int kL0_StopWritesTrigger = 12;
34+
static const int kL0_StopWritesTrigger = 64;
3535

3636
// Maximum level to which a new compacted memtable is pushed if it
3737
// does not create overlap. We try to push to level 2 to avoid the

0 commit comments

Comments
 (0)