MCPcopy
hub / github.com/dgraph-io/badger / WithLevelOneSize

Method WithLevelOneSize

options.go:428–431  ·  view source on GitHub ↗

WithLevelOneSize returns a new Options value with LevelOneSize set to the given value. LevelOneSize sets the maximum total size for Level 1. The default value of LevelOneSize is 20MB.

(val int64)

Source from the content-addressed store, hash-verified

426//
427// The default value of LevelOneSize is 20MB.
428func (opt Options) WithLevelOneSize(val int64) Options {
429 opt.LevelOneSize = val
430 return opt
431}
432
433// WithValueLogFileSize returns a new Options value with ValueLogFileSize set to the given value.
434//

Callers 2

getTestOptionsFunction · 0.80
TestArmV7Issue311FixFunction · 0.80

Calls

no outgoing calls

Tested by 2

getTestOptionsFunction · 0.64
TestArmV7Issue311FixFunction · 0.64