# Api::V1::Statistics::GymRouteStatisticsController#opening_frequencies

- **Period:** 25 Jun 09:42 UTC – 25 Jun 21:41 UTC
- **Throughput**: 0.0 / min
- **Average:** 273.3 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/models/statistics/gym_statistic.rb:189 | 150.67 | 1.0 | 55.12% | `SELECT `gym_routes`.* FROM `gym_routes` INNER JOIN `gym_sectors` ON `gym_routes…` |
| sql | app/models/statistics/gym_statistic.rb:175 | 27.33 | 1.0 | 10.00% | `SELECT COUNT(*) FROM `gym_routes` INNER JOIN `gym_sectors` ON `gym_routes`.`gym…` |
| sql | app/models/statistics/gym_statistic.rb:182 | 25.67 | 1.0 | 9.39% | `SELECT MIN(`gym_routes`.`opened_at`) FROM `gym_routes` INNER JOIN `gym_sectors`…` |
| code | app/controllers/api/v1/statistics/gym_route_statistics_controller.rb:42 | 25.67 | 1.0 | 9.39% | `Api::V1::Statistics::GymRouteStatisticsController#opening_frequencies` |
| sql | app/controllers/concerns/gymable.rb:16 | 17.33 | 1.0 | 6.34% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 14.33 | 1.0 | 5.24% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/controllers/concerns/gym_roles_verification.rb:13 | 5.33 | 1.0 | 1.95% | `SELECT ? AS one FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` =…` |
| sql | app/controllers/api/v1/api_controller.rb:26 | 5.33 | 1.0 | 1.95% | `SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW(…` |

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