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

Method WithTableLoadingMode

options.go:260–263  ·  view source on GitHub ↗

WithTableLoadingMode returns a new Options value with TableLoadingMode set to the given value. TableLoadingMode indicates which file loading mode should be used for the LSM tree data files. The default value of TableLoadingMode is options.MemoryMap.

(val options.FileLoadingMode)

Source from the content-addressed store, hash-verified

258//
259// The default value of TableLoadingMode is options.MemoryMap.
260func (opt Options) WithTableLoadingMode(val options.FileLoadingMode) Options {
261 opt.TableLoadingMode = val
262 return opt
263}
264
265// WithValueLogLoadingMode returns a new Options value with ValueLogLoadingMode set to the given
266// value.

Callers 6

TestArmV7Issue311FixFunction · 0.80
mainFunction · 0.80
runTestFunction · 0.80
readBenchFunction · 0.80
handleInfoFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestArmV7Issue311FixFunction · 0.64