persistedsqlstats: use background QoS level for work #99949
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
E-quick-win
Likely to be a quick win for someone experienced.
Is your feature request related to a problem? Please describe.
The stats compaction job runs relatively expensive work using an internal executor. We can tell admission control to de-prioritize it, and we should.
Describe the solution you'd like
The code is
cockroach/pkg/sql/sqlstats/persistedsqlstats/compaction_exec.go
Lines 215 to 221 in 1a7e82f
We can pass
QualityOfService
in theInternalExecutorOverride
.This is a very easy win.
Jira issue: CRDB-26151
The text was updated successfully, but these errors were encountered: