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

# Functions

AdjustedPriorityWhenHoldingLocks takes the original priority of a transaction and updates it under the knowledge that the transaction is holding locks.
WorkClassFromPri translates a WorkPriority to its given WorkClass.
WorkClassFromStoreWorkType translates StoreWorkType to a WorkClass.

# Constants

BulkLowPri is low priority work from internal bulk submissions.
BulkNormalPri is bulk priority work from bulk jobs, which could be run due to user submissions or be automatic.
ElasticStoreWorkType is for store-specific work that corresponds to ElasticWorkClass, excluding SnapshotIngestStoreWorkType.
ElasticWorkClass is for work corresponding to workloads that can handle reduced throughput, possibly by taking longer to finish a workload.
HighPri is high priority work.
LockingNormalPri is used for user normal priority transactions that are acquiring locks.
LockingUserHighPri is for user high priority transactions that are acquiring locks.
LowPri is low priority work.
NormalPri is normal priority work.
NumStoreWorkTypes is the number of store work types.
NumWorkClasses is the number of work classes.
OneAboveHighPri is one priority level above the highest priority.
RegularStoreWorkType is for type of store-specific work that corresponds to RegularWorkClass.
RegularWorkClass is for work corresponding to workloads that are throughput and latency sensitive.
SnapshotIngestStoreWorkType is for snapshot work type.
UserHighPri is high priority work from user submissions (SQL).
UserLowPri is low priority work from user submissions (SQL).

# Variables

TestingReverseWorkPriorityDict is the reverse-lookup dictionary for WorkPriorityDict, for use in tests.
WorkPriorityDict is a mapping of the priorities to a short string name.

# Type aliases

StoreWorkType represents the type of work,.
WorkClass represents the class of work, which is defined entirely by its WorkPriority.
WorkPriority represents the priority of work.