BigW Consortium Gitlab

Commit 52d049b4 by Sean McGivern

Remove N+1 queries when checking nodes visible to user

N in this case is low, as it's the number of distinct projects referenced from MRs, rather than the number of MRs referenced (issues use their own optimization). Still, on issues or MRs which are often referenced from MRs, it will save a few queries.
parent 6277bda6
---
title: Remove N+1 queries in processing MR references
merge_request:
author:
......@@ -33,7 +33,8 @@ module Banzai
{ namespace: :owner },
{ group: [:owners, :group_members] },
:invited_groups,
:project_members
:project_members,
:project_feature
]
}),
self.class.data_attribute
......
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