# Api::V1::ContestsController#index

- **Period:** 26 Jun 20:16 UTC – 27 Jun 09:48 UTC
- **Throughput**: 0.01 / min
- **Average:** 21.6 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/contests_controller.rb:36 | 12.86 | 1.0 | 59.60% | `Api::V1::ContestsController#index` |
| sql | app/models/contest.rb:49 | 0.85 | 3.71 | 14.57% | `SELECT COUNT(*) FROM `contest_participants` INNER JOIN `contest_categories` ON …` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 1.71 | 1.0 | 7.95% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/contests_controller.rb:41 | 1.29 | 1.0 | 5.96% | `SELECT `contests`.* FROM `contests` WHERE (`contests`.`deleted_at` IS NULL OR `…` |
| sql | app/controllers/api/v1/contests_controller.rb:148 | 1.0 | 1.0 | 4.64% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 3.0 | 0.29 | 3.97% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/contest.rb:114 | 1.5 | 0.29 | 1.99% | `SELECT COUNT(*) FROM `contest_participants` INNER JOIN `contest_categories` ON …` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.0 | 0.29 | 1.32% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/135627/requests/Api::V1::ContestsController%23index?range=2026-06-26+20%3A16%3A09+UTC..2026-06-27+09%3A48%3A53+UTC)