Skip to content

Commit

Permalink
Tweaking limits on level0 files (#10)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Major <argo_major@hotmail.com>
  • Loading branch information
yabmek-msft and argomajor authored Dec 20, 2024
1 parent 98474d5 commit 58cdc9e
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 58cdc9e

Please sign in to comment.