Documentation
¶
Index ¶
Constants ¶
View Source
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" UsageErrMsg string = "invalid --dbops flag, expect badger-transaction/badger-batch/pebble-batch, but got: %v" )
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 ¶
func IsBadgerBased ¶ added in v0.39.2
func IsBadgerBatch ¶ added in v0.39.2
func IsBadgerTransaction ¶ added in v0.39.2
func IsBatchUpdate ¶ added in v0.39.2
func IsPebbleBatch ¶ added in v0.39.2
Types ¶
Click to show internal directories.
Click to hide internal directories.