# Quiz::AnswersController#index

- **Period:** 12 Jun 11:43 UTC – 12 Jun 16:40 UTC
- **Throughput**: 0.02 / min
- **Average:** 180.1 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | lib/quiz/stats.rb:120 | 65.67 | 0.86 | 31.25% | `WITH first_answers AS ( SELECT qa.user_id, qa.question_id, qa.proposition_id, R…` |
| sql | app/views/layouts/quiz_answer.html.erb:87 | 36.5 | 0.86 | 17.37% | `SELECT sub_categories.*, count(quiz_answers.id) as quiz_answers_count FROM "sub…` |
| sql | app/views/layouts/quiz_answer.html.erb:104 | 7.17 | 2.57 | 10.23% | `SELECT topics.*, count(quiz_answers.id) as quiz_answers_count FROM "topics" INN…` |
| sql | app/views/layouts/quiz_answer.html.erb:70 | 14.83 | 0.86 | 7.06% | `SELECT categories.*, count(quiz_answers.id) as quiz_answers_count FROM "categor…` |
| sql | app/helpers/forms_helper.rb:80 | 13.0 | 0.86 | 6.19% | `SELECT DISTINCT "groups"."id", "groups"."name", "categories"."name", "categorie…` |
| sql | lib/quiz/stats.rb:26 | 10.0 | 0.86 | 4.76% | `SELECT COUNT(*) FROM "quiz_questions" WHERE ("quiz_questions"."categorisable_ty…` |
| code | app/controllers/quiz/answers_controller.rb:4 | 8.57 | 1.0 | 4.76% | `Quiz::AnswersController#index` |
| sql | app/views/quiz/answers/index.html.erb:38 | 1.71 | 2.0 | 1.90% | `SELECT "quiz_answers".* FROM "quiz_answers" WHERE "quiz_answers"."question_id" …` |
| sql | app/controllers/quiz/answers_controller.rb:8 | 3.0 | 1.0 | 1.67% | `SELECT COUNT(*) FROM "quiz_answers" WHERE "quiz_answers"."question_id" IN (?) O…` |
| sql | app/views/quiz/answers/index.html.erb:34 | 2.86 | 1.0 | 1.59% | `SELECT COUNT(*) FROM (SELECT ? AS one FROM "quiz_answers" WHERE "quiz_answers".…` |
| sql | lib/quiz/stats.rb:21 | 3.17 | 0.86 | 1.51% | `SELECT COUNT(*) FROM "quiz_answers" INNER JOIN "quiz_propositions" ON "quiz_pro…` |
| view | app/views/quiz/answers/index.html.erb | 2.57 | 1.0 | 1.43% |  |
| gc | ruby/gc.c | 4.25 | 0.57 | 1.35% | `GC.start` |
| view | app/views/quiz/answers/_stats.html.erb | 2.17 | 0.86 | 1.03% |  |
| sql | lib/quiz/selection.rb:67 | 1.86 | 1.0 | 1.03% | `SELECT ? AS one FROM "quiz_questions" WHERE ("quiz_questions"."categorisable_ty…` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/135493/requests/Quiz::AnswersController%23index?range=2026-06-12+11%3A43%3A42+UTC..2026-06-12+16%3A40%3A16+UTC)