Skip to content
代码片段 群组 项目
未验证 提交 09076b00 编辑于 作者: Heinrich Lee Yu's avatar Heinrich Lee Yu
浏览文件

Improve performance of group work items query

Use a UNION instead of UNION ALL because it results in a much better
query plan.
上级 8e638393
No related branches found
No related tags found
无相关合并请求
......@@ -118,7 +118,7 @@ def by_parent(items)
namespaces = if relations.one?
relations.first
else
Namespace.from_union(relations, remove_duplicates: false)
Namespace.from_union(relations)
end
items.in_namespaces(namespaces)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册