Skip to content

IssuableFinder - Always use CTE for group counts

Mario de la Ossa requested to merge 54643-lower_issuable_finder_complexity into master

What does this MR do?

Simplify IssuableFinder's logic a bit by always using a CTE for group counts. The CTE is the most performant query when doing a fuzzy search in a group context, but has issues when sorting by certain attributes, so we use it for counts (where we can fully remove the sorting) and use a subquery for all other group searches.

What are the relevant issue numbers?

#54643 (closed)

Does this MR meet the acceptance criteria?

Closes #54643 (closed)

Edited by Mario de la Ossa

Merge request reports