# Api::V1::GymRoutesController#ascents

- **Period:** 12 May 23:08 UTC – 13 May 11:08 UTC
- **Throughput**: 0.16 / min
- **Average:** 99.4 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gym_routes_controller.rb:216 | 59.67 | 1.0 | 60.04% | `Api::V1::GymRoutesController#ascents` |
| sql | app/models/ascent_gym_route.rb:64 | 1.49 | 5.88 | 8.80% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/ascent_gym_route.rb:36 | 1.42 | 5.88 | 8.43% | `SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `…` |
| sql | app/models/ascent_gym_route.rb:73 | 1.34 | 5.88 | 7.92% | `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.61 | 1.0 | 2.62% | `Rails::Engine#call` |
| sql | app/controllers/concerns/gymable.rb:16 | 1.63 | 1.0 | 1.64% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/gym_routes_controller.rb:218 | 1.52 | 1.0 | 1.53% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`gym…` |
| sql | app/controllers/api/v1/gym_routes_controller.rb:421 | 1.4 | 1.0 | 1.41% | `SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT ?` |
| sql | app/models/color_system.rb:68 | 0.31 | 4.35 | 1.37% | `SELECT `color_system_lines`.* FROM `color_system_lines` WHERE `color_system_lin…` |
| sql | app/models/ascent_gym_route.rb:71 | 0.3 | 4.35 | 1.29% | `SELECT `color_system_lines`.* FROM `color_system_lines` WHERE `color_system_lin…` |
| sql | app/models/ascent_gym_route.rb:72 | 0.29 | 4.35 | 1.26% | `SELECT `color_systems`.* FROM `color_systems` WHERE `color_systems`.`id` = ? LI…` |
| sql | app/models/gym_route.rb:61 | 1.69 | 0.64 | 1.10% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |

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