Commit 92ed1fec authored by Bob Van Landuyt's avatar Bob Van Landuyt

Update preloaded count queries for MySQL

parent d2a9d95a
...@@ -5,9 +5,9 @@ module LoadedInGroupList ...@@ -5,9 +5,9 @@ module LoadedInGroupList
def with_counts(archived:) def with_counts(archived:)
selects_including_counts = [ selects_including_counts = [
'namespaces.*', 'namespaces.*',
"(#{project_count_sql(archived).to_sql})", "(#{project_count_sql(archived).to_sql}) AS preloaded_project_count",
"(#{subgroup_count_sql.to_sql})", "(#{member_count_sql.to_sql}) AS preloaded_member_count",
"(#{member_count_sql.to_sql})" "(#{subgroup_count_sql.to_sql}) AS preloaded_subgroup_count"
] ]
select(selects_including_counts) select(selects_including_counts)
......
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