Commit 2ce5ef22 authored by Andreas Brandl's avatar Andreas Brandl

Merge branch '37745-optimize-pipelines-finder' into 'master'

Fix query performance in PipelinesFinder

See merge request gitlab-org/gitlab!21092
parents 799f9e3f 3205efc1
......@@ -39,7 +39,7 @@ class PipelinesFinder
# rubocop: disable CodeReuse/ActiveRecord
def from_ids(ids)
pipelines.unscoped.where(id: ids)
pipelines.unscoped.where(project_id: project.id, id: ids)
end
# rubocop: enable CodeReuse/ActiveRecord
......
---
title: Fix query performance in PipelinesFinder
merge_request: 21092
author:
type: performance
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