# Api::V1::ContestsController#statistics

- **Period:** 27 Jun 09:48 UTC – 27 Jun 17:01 UTC
- **Throughput**: 0.02 / min
- **Average:** 77.2 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/contests_controller.rb:63 | 45.71 | 1.0 | 59.19% | `Api::V1::ContestsController#statistics` |
| sql | app/models/contest_service/statistics.rb:71 | 0.79 | 6.0 | 6.10% | `SELECT `contest_stages`.* FROM `contest_stages` WHERE `contest_stages`.`contest…` |
| sql | app/models/contest_service/statistics.rb:97 | 0.67 | 4.71 | 4.07% | `SELECT `contest_routes`.* FROM `contest_routes` WHERE `contest_routes`.`contest…` |
| sql | app/models/contest_service/statistics.rb:89 | 0.63 | 4.57 | 3.70% | `SELECT `contest_route_group_categories`.* FROM `contest_route_group_categories`…` |
| sql | app/models/contest_service/statistics.rb:90 | 1.08 | 1.86 | 2.59% | `SELECT COUNT(*) FROM `contest_participant_steps` INNER JOIN `contest_participan…` |
| sql | app/models/contest_service/statistics.rb:308 | 1.86 | 1.0 | 2.40% | `SELECT `contest_participant_ascents`.* FROM `contest_participant_ascents` INNER…` |
| sql | app/models/contest_service/statistics.rb:86 | 0.77 | 1.86 | 1.85% | `SELECT COUNT(*) FROM `contest_participant_steps` INNER JOIN `contest_participan…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.0 | 0.71 | 1.85% | `Rails::Engine#call` |
| sql | app/models/contest_service/statistics.rb:88 | 0.62 | 1.86 | 1.48% | `SELECT `contest_route_groups`.* FROM `contest_route_groups` WHERE `contest_rout…` |
| sql | app/models/contest_service/statistics.rb:77 | 0.62 | 1.86 | 1.48% | `SELECT `contest_stage_steps`.* FROM `contest_stage_steps` WHERE `contest_stage_…` |
| sql | app/controllers/api/v1/contests_controller.rb:148 | 1.0 | 1.0 | 1.29% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/contest_service/statistics.rb:292 | 0.86 | 1.0 | 1.11% | `SELECT `contest_participants`.* FROM `contest_participants` INNER JOIN `contest…` |
| sql | app/models/contest_service/statistics.rb:20 | 0.86 | 1.0 | 1.11% | `SELECT COUNT(*) FROM `contest_participants` INNER JOIN `contest_categories` ON …` |

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