Eliminate N+1 queries referencing issues

To load issue 1, we see that in #38033 that about 835 ms of the
SQL queries were due to loading ProjectFeature. We should be
able to cut this down by eagerly loading this information.

Closes #38033
This commit is contained in:
Stan Hu 2017-09-18 16:14:44 -07:00
parent f0b089cf78
commit 0a2f93aa6a
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
title: Eliminate N+1 queries referencing issues
merge_request:
author:
type: fixed

View File

@ -34,7 +34,8 @@ module Banzai
{ namespace: :owner },
{ group: [:owners, :group_members] },
:invited_groups,
:project_members
:project_members,
:project_feature
]
}
),