pebble

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(file string, cache int, handles int, namespace string, readonly bool, ephemeral bool, extraOptions *ExtraOptions) (ethdb.Database, error)

Types

type ExtraLevelOptions

type ExtraLevelOptions struct {
	BlockSize      int
	IndexBlockSize int
	TargetFileSize int64
}

type ExtraOptions

type ExtraOptions struct {
	BytesPerSync                int
	L0CompactionFileThreshold   int
	L0CompactionThreshold       int
	L0StopWritesThreshold       int
	LBaseMaxBytes               int64
	MemTableStopWritesThreshold int
	MaxConcurrentCompactions    func() int
	DisableAutomaticCompactions bool
	WALBytesPerSync             int
	WALDir                      string
	WALMinSyncInterval          func() time.Duration
	TargetByteDeletionRate      int
	Experimental                ExtraOptionsExperimental
	Levels                      []ExtraLevelOptions
}

type ExtraOptionsExperimental

type ExtraOptionsExperimental struct {
	L0CompactionConcurrency   int
	CompactionDebtConcurrency uint64
	ReadCompactionRate        int64
	ReadSamplingMultiplier    int64
	MaxWriterConcurrency      int
	ForceWriterParallelism    bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL