# Api::V1::Statistics::GymRouteStatisticsController#figures

- **Period:** 24 Jun 20:17 UTC – 25 Jun 20:16 UTC
- **Throughput**: 0.0 / min
- **Average:** 741.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/models/statistics/gym_statistic.rb:41 | 229.0 | 1.0 | 30.90% | `SELECT MAX(`gym_routes`.`max_grade_value`) FROM `gym_routes` INNER JOIN `gym_se…` |
| sql | app/models/statistics/gym_statistic.rb:32 | 112.33 | 1.0 | 15.16% | `SELECT COUNT(*) FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`ascent…` |
| sql | app/models/statistics/gym_statistic.rb:23 | 97.67 | 1.0 | 13.18% | `SELECT MIN(`gym_routes`.`opened_at`) FROM `gym_routes` INNER JOIN `gym_sectors`…` |
| sql | app/models/statistics/gym_statistic.rb:21 | 90.0 | 1.0 | 12.15% | `SELECT `gym_routes`.* FROM `gym_routes` INNER JOIN `gym_sectors` ON `gym_routes…` |
| sql | app/models/statistics/gym_statistic.rb:43 | 81.0 | 1.0 | 10.93% | `SELECT AVG(`gym_routes`.`max_grade_value`) FROM `gym_routes` INNER JOIN `gym_se…` |
| sql | app/models/statistics/gym_statistic.rb:42 | 30.67 | 1.0 | 4.14% | `SELECT MIN(`gym_routes`.`min_grade_value`) FROM `gym_routes` INNER JOIN `gym_se…` |
| sql | app/models/statistics/gym_statistic.rb:22 | 29.67 | 1.0 | 4.00% | `SELECT MAX(`gym_routes`.`opened_at`) FROM `gym_routes` INNER JOIN `gym_sectors`…` |
| code | app/controllers/api/v1/statistics/gym_route_statistics_controller.rb:11 | 26.67 | 1.0 | 3.60% | `Api::V1::Statistics::GymRouteStatisticsController#figures` |
| sql | app/controllers/concerns/gym_roles_verification.rb:13 | 11.33 | 1.0 | 1.53% | `SELECT ? AS one FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` =…` |
| sql | app/controllers/api/v1/api_controller.rb:26 | 10.67 | 1.0 | 1.44% | `SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW(…` |
| sql | app/controllers/concerns/gymable.rb:16 | 10.33 | 1.0 | 1.39% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 9.33 | 1.0 | 1.26% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |

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