Commit 0a2f93aa authored by Stan Hu's avatar Stan Hu

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
parent f0b089cf
---
title: Eliminate N+1 queries referencing issues
merge_request:
author:
type: fixed
......@@ -34,7 +34,8 @@ module Banzai
{ namespace: :owner },
{ group: [:owners, :group_members] },
:invited_groups,
:project_members
:project_members,
:project_feature
]
}
),
......
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