# Api::V1::Statistics::GymRouteStatisticsController#routes_by_levels

- **Period:** 25 Jun 09:25 UTC – 25 Jun 21:24 UTC
- **Throughput**: 0.0 / min
- **Average:** 177.7 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/models/statistics/gym_statistic.rb:83 | 98.0 | 1.0 | 55.16% | `SELECT `gym_routes`.* FROM `gym_routes` INNER JOIN `gym_sectors` ON `gym_routes…` |
| code | app/controllers/api/v1/statistics/gym_route_statistics_controller.rb:19 | 25.67 | 1.0 | 14.45% | `Api::V1::Statistics::GymRouteStatisticsController#routes_by_levels` |
| sql | app/models/statistics/gym_statistic.rb:87 | 14.33 | 1.0 | 8.07% | `SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ? AND `gy…` |
| sql | app/controllers/api/v1/api_controller.rb:26 | 10.67 | 1.0 | 6.00% | `SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW(…` |
| sql | app/controllers/concerns/gym_roles_verification.rb:13 | 10.67 | 1.0 | 6.00% | `SELECT ? AS one FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` =…` |
| sql | app/controllers/concerns/gymable.rb:16 | 9.0 | 1.0 | 5.07% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 7.33 | 1.0 | 4.13% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.0 | 1.0 | 1.13% | `Rails::Engine#call` |

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