Skip to content

Commit f5c864b

Browse files
committed
jobs: enable jobs.avoid_full_scans.enabled by default
Release note (performance improvement): Some internal queries executed by the jobs system are now less likely to perform full table scans of the `system.jobs` table, making them more efficient. This change can be reverted by disabling the `jobs.avoid_full_scans_in_find_running_jobs.enabled` cluster setting.
1 parent 6c92c7e commit f5c864b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/jobs/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222

2323
var testingAvoidFullScans = metamorphic.ConstantWithTestBool(
2424
"jobs.avoid_full_scans_in_find_running_jobs",
25-
false, /* defaultValue */
25+
true, /* defaultValue */
2626
)
2727

2828
var avoidFullScans = settings.RegisterBoolSetting(

0 commit comments

Comments
 (0)