Closed GeoffreyHuck closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
ec53a8f
) to head (91fa892
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
A query that takes > 8s in production:
It looks like the optimizer cannot use the index on
child_group_id
with the OR because it breaks the ordering.The query is faster if we include the current group id with the others, and sort the result.