Commit 12861515 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Add performance query regression fix for !9088 affecting #27267

parent 2fb3fcf0
Pipeline #6679659 passed with stages
in 96 minutes and 44 seconds
......@@ -36,7 +36,7 @@ class Event < ActiveRecord::Base
scope :code_push, -> { where(action: PUSHED) }
scope :in_projects, ->(projects) do
where(project_id: projects).recent
where(project_id: projects.pluck(:id)).recent
end
scope :with_associations, -> { includes(:author, :project, project: :namespace).preload(:target) }
......
---
title: 'Add performance query regression fix for !9088 affecting #27267'
merge_request:
author:
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