# Api::V1::ContestsController#index

- **Period:** 27 Jun 09:48 UTC – 27 Jun 17:04 UTC
- **Throughput**: 0.03 / min
- **Average:** 28.6 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/contests_controller.rb:36 | 16.62 | 1.0 | 58.10% | `Api::V1::ContestsController#index` |
| sql | app/models/contest.rb:49 | 0.87 | 5.38 | 16.41% | `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 | 2.18 | 0.85 | 6.46% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/contests_controller.rb:41 | 1.15 | 1.0 | 4.03% | `SELECT `contests`.* FROM `contests` WHERE (`contests`.`deleted_at` IS NULL OR `…` |
| sql | app/controllers/api/v1/contests_controller.rb:148 | 0.92 | 1.0 | 3.23% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/contest.rb:114 | 0.61 | 1.38 | 2.96% | `SELECT COUNT(*) FROM `contest_participants` INNER JOIN `contest_categories` ON …` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 0.5 | 1.38 | 2.42% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 0.43 | 1.08 | 1.61% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| cache | app/models/contest.rb:93 | 0.12 | 2.62 | 1.08% | `read write` |

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