mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-09 17:09: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
|
||||
@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.*')
|
||||
|
|
Loading…
Reference in a new issue