# Api::V1::GymRoutesController#ascents

- **Period:** 13 May 10:53 UTC – 13 May 11:08 UTC
- **Throughput**: 0.2 / min
- **Average:** 32.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gym_routes_controller.rb:216 | 17.0 | 1.0 | 53.13% | `Api::V1::GymRoutesController#ascents` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.33 | 1.0 | 7.29% | `Rails::Engine#call` |
| sql | app/controllers/concerns/gymable.rb:16 | 1.67 | 1.0 | 5.21% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/gym_routes_controller.rb:421 | 1.33 | 1.0 | 4.17% | `SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT ?` |
| sql | app/models/ascent_gym_route.rb:64 | 1.33 | 1.0 | 4.17% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/gym_routes_controller.rb:218 | 1.0 | 1.0 | 3.13% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`gym…` |
| sql | app/models/ascent_gym_route.rb:73 | 1.0 | 1.0 | 3.13% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/gym_route.rb:61 | 1.5 | 0.67 | 3.13% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/ascent_gym_route.rb:36 | 1.0 | 1.0 | 3.13% | `SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `…` |
| sql | app/models/gym.rb:284 | 2.0 | 0.33 | 2.08% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/gym.rb:295 | 2.0 | 0.33 | 2.08% | `SELECT COUNT(*) FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.0 | 0.67 | 2.08% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.0 | 0.67 | 2.08% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/color_system.rb:68 | 1.0 | 0.33 | 1.04% | `SELECT `color_system_lines`.* FROM `color_system_lines` WHERE `color_system_lin…` |
| sql | app/models/ascent_gym_route.rb:71 | 1.0 | 0.33 | 1.04% | `SELECT `color_system_lines`.* FROM `color_system_lines` WHERE `color_system_lin…` |
| sql | app/models/gym_route.rb:59 | 1.0 | 0.33 | 1.04% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/gym.rb:182 | 1.0 | 0.33 | 1.04% | `SELECT `gym_options`.* FROM `gym_options` WHERE `gym_options`.`gym_id` = ?` |

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