package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Packages

# Functions

MakeAndRegisterConcurrencyLimiter makes a concurrency limiter and registers it with the setting on-change hook; it should be called only once during server setup due to the side-effects of the on-change registration.
MakeBulkAdder makes a kvserverbase.BulkAdder that buffers and sorts K/Vs passed to add into SSTs that are then ingested.
MakeBulkMetrics instantiates the metrics holder for bulk operation monitoring.
MakeSSTBatcher makes a ready-to-use SSTBatcher.
MakeStreamSSTBatcher creates a batcher configured to ingest duplicate keys that might be received from a cluster to cluster stream.
MakeTestingSSTBatcher creates a batcher for testing, allowing setting options that are typically only set when constructing a batcher in BufferingAdder.

# Variables

IngestBatchSize controls the size of ingest ssts.

# Structs

BufferingAdder is a wrapper for an SSTBatcher that allows out-of-order calls to Add, buffering them up and then sorting them before then passing them in order into an SSTBatcher.
Metrics contains pointers to the metrics for monitoring bulk operations.
SSTBatcher is a helper for bulk-adding many KVs in chunks via AddSSTable.