Skip to content
Snippets Groups Projects
Commit 12861515 authored by Oswaldo Ferreir's avatar Oswaldo Ferreir
Browse files

Add performance query regression fix for !9088 affecting #27267

parent 2fb3fcf0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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) }
Loading
Loading
---
title: 'Add performance query regression fix for !9088 affecting #27267'
merge_request:
author:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment