Documentation
¶
Index ¶
Constants ¶
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" )
const DB_OPS_DEFAULT = string(BadgerTransaction)
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.