Commit a39d65b8 authored by Sean McGivern's avatar Sean McGivern
Browse files

Merge branch '27267-events-project-query-performance-regression' into 'master'

Query performance regression fix affecting "Dashboard::ProjectsController#index.atom"

Closes #27267

See merge request !9526
......@@ -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
scope :with_associations, -> { includes(:author, :project, project: :namespace).preload(:target) }
title: 'Add performance query regression fix for !9088 affecting #27267'
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