-
- Downloads
Add a flag to use a subquery for group issues search
We already had a flag to use a CTE, but this broke searching in some cases where we need to sort by a joined table. Disabling the CTE flag makes searches much slower. The new flag, to use a subquery, makes them slightly slower than the CTE, while maintaining correctness. If both it and the CTE flag are enabled, the subquery takes precedence.
Showing
- app/controllers/concerns/issuable_collections.rb 1 addition, 1 deletionapp/controllers/concerns/issuable_collections.rb
- app/finders/issuable_finder.rb 38 additions, 9 deletionsapp/finders/issuable_finder.rb
- changelogs/unreleased/move-group-issues-search-cte-up-the-chain.yml 5 additions, 0 deletions.../unreleased/move-group-issues-search-cte-up-the-chain.yml
- spec/controllers/groups_controller_spec.rb 2 additions, 1 deletionspec/controllers/groups_controller_spec.rb
- spec/finders/issues_finder_spec.rb 127 additions, 0 deletionsspec/finders/issues_finder_spec.rb
Please register or sign in to comment