dbops

package
v0.39.0-pr6906-results.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const DB_OPS_DEFAULT = string(BadgerTransaction)
View Source
const DB_OPS_MSG = "database operations to use (badger-transaction, badger-batch, pebble-batch)"

The dbops feature flag is used to toggle between different database update operations. Currently, the existing database update operations use badger-transaction, which is default and deprecated. As part of the refactoring process to eventually transition to pebble-batch updates, an intermediate step is required to switch to badger-batch. This is why the feature flag has three possible values to facilitate the transition.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBOps

type DBOps string
const (
	// BadgerTransaction uses badger transactions (default and deprecated)
	BadgerTransaction DBOps = "badger-transaction"
	// BadgerBatch uses badger batch updates
	BadgerBatch DBOps = "badger-batch"
	// PebbleBatch uses pebble batch updates
	PebbleBatch DBOps = "pebble-batch"
)

Jump to

Keyboard shortcuts

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