# Api::V1::ContestsController#index

- **Period:** 12 May 11:25 UTC – 13 May 11:25 UTC
- **Throughput**: 0.02 / min
- **Average:** 35.4 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/contests_controller.rb:36 | 23.0 | 1.0 | 65.03% | `Api::V1::ContestsController#index` |
| sql | app/models/contest.rb:49 | 1.27 | 2.7 | 9.74% | `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.74 | 1.0 | 7.75% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/contests_controller.rb:148 | 1.96 | 1.0 | 5.55% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/contests_controller.rb:41 | 1.89 | 1.0 | 5.34% | `SELECT `contests`.* FROM `contests` WHERE (`contests`.`deleted_at` IS NULL OR `…` |
| sql | app/models/contest.rb:114 | 1.53 | 0.7 | 3.04% | `SELECT COUNT(*) FROM `contest_participants` INNER JOIN `contest_categories` ON …` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.26 | 0.7 | 2.51% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/135627/requests/Api::V1::ContestsController%23index?range=1d)