• Mario de la Ossa's avatar
    Always use CTE for IssuableFinder counts · 39afba06
    Mario de la Ossa authored
    Since the CTE is faster than a subquery and the only reason we're using
    a subquery is that the CTE can't handle sorting by certain attributes,
    let's use the CTE always (when the feature flag is enabled) when
    counting, since we can ignore ordering if we just want a count of
    results.
    39afba06
groups_controller_spec.rb 20.1 KB