Skip to content

Commit

Permalink
feat: DisableSeeksCompaction
Browse files Browse the repository at this point in the history
  • Loading branch information
kjessec committed Mar 7, 2022
1 parent 933aaa5 commit c71e8b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions goleveldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ func NewGoLevelDB(name string, dir string) (*GoLevelDB, error) {
BlockCacheCapacity: opt.GiB,
// Use 64 MiB instead of default 4 MiB
WriteBuffer: 64 * opt.MiB,
DisableBufferPool: false,
DisableSeeksCompaction: true,

//CompactionTableSize: 8 * opt.MiB,
//CompactionTotalSize: 40 * opt.MiB,
//CompactionTotalSizeMultiplierPerLevel: []float64{1, 1, 10, 100, 1000, 10000, 100000},
Expand Down

0 comments on commit c71e8b6

Please sign in to comment.