# Api::V1::GymRoutesController#ascents

- **Period:** 13 May 05:57 UTC – 13 May 11:57 UTC
- **Throughput**: 0.33 / min
- **Average:** 118.1 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gym_routes_controller.rb:216 | 71.14 | 1.0 | 60.25% | `Api::V1::GymRoutesController#ascents` |
| sql | app/models/ascent_gym_route.rb:64 | 1.51 | 7.06 | 9.04% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/ascent_gym_route.rb:36 | 1.43 | 7.06 | 8.53% | `SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `…` |
| sql | app/models/ascent_gym_route.rb:73 | 1.42 | 7.06 | 8.49% | `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.57 | 1.0 | 2.17% | `Rails::Engine#call` |
| sql | app/controllers/concerns/gymable.rb:16 | 1.8 | 1.0 | 1.52% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/gym_routes_controller.rb:218 | 1.58 | 1.0 | 1.34% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`gym…` |
| sql | app/models/color_system.rb:68 | 0.3 | 5.21 | 1.31% | `SELECT `color_system_lines`.* FROM `color_system_lines` WHERE `color_system_lin…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 3.71 | 0.41 | 1.28% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/ascent_gym_route.rb:72 | 0.26 | 5.21 | 1.16% | `SELECT `color_systems`.* FROM `color_systems` WHERE `color_systems`.`id` = ? LI…` |
| sql | app/models/ascent_gym_route.rb:71 | 0.26 | 5.21 | 1.16% | `SELECT `color_system_lines`.* FROM `color_system_lines` WHERE `color_system_lin…` |
| sql | app/controllers/api/v1/gym_routes_controller.rb:421 | 1.33 | 1.0 | 1.13% | `SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT ?` |

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