dbops

package
v0.39.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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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