From d2b097599fec1783c23af07d85c1d73640f344e3 Mon Sep 17 00:00:00 2001 From: ajugo Date: Wed, 6 Mar 2024 14:48:30 +0100 Subject: [PATCH] Improve projects table loading speed [SCI-10147] (#7136) --- app/services/lists/projects_service.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/services/lists/projects_service.rb b/app/services/lists/projects_service.rb index fd0259648..58eaa3e28 100644 --- a/app/services/lists/projects_service.rb +++ b/app/services/lists/projects_service.rb @@ -34,8 +34,7 @@ module Lists def fetch_projects @team.projects - .includes(:team, user_assignments: %i(user user_role)) - .includes(:project_comments, experiments: { my_modules: { my_module_status: :my_module_status_implications } }) + .includes(:team, :project_comments, user_assignments: %i(user user_role)) .visible_to(@user, @team) .left_outer_joins(:project_comments) .select('projects.*')