Commit 77eebce7 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch '340583-improve-query-planning-time' into 'master'

Convert project_id column to bigint to increase planning time performance

See merge request gitlab-org/gitlab!70966
parents d8a1348d d5644099
......@@ -90,7 +90,7 @@ module Ci
def runner_projects_relation
if ::Feature.enabled?(:ci_pending_builds_project_runners_decoupling, runner, default_enabled: :yaml)
runner.runner_projects.select(:project_id)
runner.runner_projects.select('"ci_runner_projects"."project_id"::bigint')
else
runner.projects.without_deleted.with_builds_enabled
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment