mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-10 01:19:45 +08:00
Improve projects table loading speed [SCI-10147] (#7136)
This commit is contained in:
parent
bd22084298
commit
d2b097599f
1 changed files with 1 additions and 2 deletions
|
@ -34,8 +34,7 @@ module Lists
|
||||||
|
|
||||||
def fetch_projects
|
def fetch_projects
|
||||||
@team.projects
|
@team.projects
|
||||||
.includes(:team, user_assignments: %i(user user_role))
|
.includes(:team, :project_comments, user_assignments: %i(user user_role))
|
||||||
.includes(:project_comments, experiments: { my_modules: { my_module_status: :my_module_status_implications } })
|
|
||||||
.visible_to(@user, @team)
|
.visible_to(@user, @team)
|
||||||
.left_outer_joins(:project_comments)
|
.left_outer_joins(:project_comments)
|
||||||
.select('projects.*')
|
.select('projects.*')
|
||||||
|
|
Loading…
Reference in a new issue