# Api::V1::AscentGymRoutesController#update

- **Period:** 12 May 23:09 UTC – 13 May 11:09 UTC
- **Throughput**: 0.02 / min
- **Average:** 65.4 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/ascent_gym_routes_controller.rb:206 | 34.19 | 1.0 | 52.24% | `Api::V1::AscentGymRoutesController#update` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:218 | 1.72 | 2.69 | 7.07% | `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.94 | 1.0 | 4.49% | `Rails::Engine#call` |
| sql | app/models/gym_route.rb:187 | 1.36 | 1.75 | 3.63% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/ascent_gym_route.rb:186 | 1.27 | 1.63 | 3.15% | `BEGIN SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:240 | 2.2 | 0.94 | 3.15% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`use…` |
| sql | app/models/ascent_gym_route.rb:132 | 2.0 | 0.94 | 2.87% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/ascent.rb:56 | 1.8 | 0.94 | 2.58% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:250 | 1.63 | 1.0 | 2.48% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`id`…` |
| sql | app/controllers/api/v1/api_controller.rb:26 | 1.63 | 1.0 | 2.48% | `SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW(…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:214 | 1.53 | 0.94 | 2.20% | `SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `…` |
| sql | app/models/gym_route.rb:437 | 1.53 | 0.94 | 2.20% | `SELECT `contest_routes`.* FROM `contest_routes` WHERE `contest_routes`.`gym_rou…` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 1.38 | 1.0 | 2.10% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/gym_route.rb:161 | 1.27 | 0.94 | 1.81% | `SELECT `ascents`.`hardness_status`, `ascents`.`ascent_status`, `ascents`.`user_…` |
| sql | app/models/ascent.rb:58 | 1.19 | 1.0 | 1.81% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/ascent.rb:60 | 1.2 | 0.94 | 1.72% | `UPDATE `ascents` SET `ascents`.`climbing_session_id` = ? WHERE `ascents`.`id` =…` |
| sql | app/models/ascent.rb:59 | 1.2 | 0.94 | 1.72% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |
| sql | app/models/climbing_session.rb:133 | 1.3 | 0.63 | 1.24% | `SELECT COUNT(*) FROM `ascents` WHERE `ascents`.`climbing_session_id` = ?` |

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