Skip to content

Commit

Permalink
Tweaking limits on level0 files
Browse files Browse the repository at this point in the history
  • Loading branch information
argomajor authored and yabmek-msft committed Dec 18, 2024
1 parent 23e35d7 commit 7f2cbee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/dbformat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f2cbee

Please sign in to comment.