# Api::V1::ContestsController#index

- **Period:** 12 May 23:05 UTC – 13 May 11:05 UTC
- **Throughput**: 0.01 / min
- **Average:** 43.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/contests_controller.rb:36 | 27.0 | 1.0 | 62.79% | `Api::V1::ContestsController#index` |
| sql | app/models/contest.rb:49 | 1.28 | 3.56 | 10.59% | `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.89 | 1.0 | 6.72% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/contests_controller.rb:41 | 2.11 | 1.0 | 4.91% | `SELECT `contests`.* FROM `contests` WHERE (`contests`.`deleted_at` IS NULL OR `…` |
| sql | app/controllers/api/v1/contests_controller.rb:148 | 1.89 | 1.0 | 4.39% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.42 | 1.33 | 4.39% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/contest.rb:114 | 1.42 | 1.33 | 4.39% | `SELECT COUNT(*) FROM `contest_participants` INNER JOIN `contest_categories` ON …` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.4 | 0.56 | 1.81% | `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=12h)