package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
GetDefaultBatchBytesLimit returns the maximum number of bytes a scan request can return.
SetDefaultBatchBytesLimitForTests overrides defaultBatchBytesLimit to the given value.
# Constants
NoBytesLimit can be passed to Fetcher.StartScan to signify that the caller doesn't want to limit the size of results for each scan request.
NoRowLimit can be passed to Fetcher.StartScan to signify that the caller doesn't want to limit the number of result rows for each scan request.
ProductionKVBatchSize is the kv batch size to use for production (i.e., non-test) clusters.
RowExecCancelCheckInterval is the default cancel check interval for the row execution engine.
# Variables
MetaMaxRowSizeErr is metadata for the sql.guardrails.max_row_size_err.count{.internal} metrics.
MetaMaxRowSizeLog is metadata for the sql.guardrails.max_row_size_log.count{.internal} metrics.
# Structs
Metrics holds metrics measuring calls into the KV layer by various parts of the SQL layer, including by queries, schema changes, and bulk IO.
# Type aliases
BytesLimit represents a response limit expressed in terms of the size of the results.
KeyLimit represents a response limit expressed in terms of number of keys.
RowLimit represents a response limit expressed in terms of number of result rows.