Add Bullet gem for dev & fix N+1 queries issues for core index actions
All checks were successful
CI / scan_ruby (push) Successful in 26s
CI / scan_js (push) Successful in 15s
CI / lint (push) Successful in 15s
CI / test (push) Successful in 34s

This commit is contained in:
sto
2026-03-10 15:51:26 +01:00
parent ee65212f57
commit 8a993fa310
7 changed files with 17 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ class ContestantsController < ApplicationController
def index
authorize @contest
@contestants = @contest.contestants.sort_by { |contestant| contestant.name }
@contestants = @contest.contestants.includes([ :completions, :offline ]).sort_by { |contestant| contestant.name }
filter_contestants_per_category
end