# Api::V1::AscentGymRoutesController#update

- **Period:** 27 Jun 09:48 UTC – 27 Jun 17:08 UTC
- **Throughput**: 0.01 / min
- **Average:** 40.5 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/ascent_gym_routes_controller.rb:206 | 20.67 | 1.0 | 51.03% | `Api::V1::AscentGymRoutesController#update` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:218 | 1.0 | 3.17 | 7.82% | `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 | 1.83 | 1.0 | 4.53% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:240 | 1.83 | 1.0 | 4.53% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`use…` |
| sql | app/models/gym_route.rb:176 | 1.11 | 1.5 | 4.12% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/gym_route.rb:150 | 1.2 | 0.83 | 2.47% | `SELECT `ascents`.`hardness_status`, `ascents`.`ascent_status`, `ascents`.`user_…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:214 | 1.0 | 1.0 | 2.47% | `SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:250 | 1.0 | 1.0 | 2.47% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`id`…` |
| sql | app/models/ascent_gym_route.rb:131 | 1.2 | 0.83 | 2.47% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/ascent_gym_route.rb:187 | 0.6 | 1.67 | 2.47% | `BEGIN SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT…` |
| sql | app/models/ascent.rb:56 | 1.0 | 1.0 | 2.47% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |
| sql | app/models/ascent.rb:60 | 0.83 | 1.0 | 2.06% | `UPDATE `ascents` SET `ascents`.`climbing_session_id` = ? WHERE `ascents`.`id` =…` |
| sql | app/controllers/api/v1/api_controller.rb:26 | 0.83 | 1.0 | 2.06% | `SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW(…` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 0.83 | 1.0 | 2.06% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/ascent.rb:59 | 0.83 | 1.0 | 2.06% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |
| sql | app/models/ascent.rb:58 | 0.67 | 1.0 | 1.65% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/gym_route.rb:426 | 0.8 | 0.83 | 1.65% | `SELECT `contest_routes`.* FROM `contest_routes` WHERE `contest_routes`.`gym_rou…` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/135627/requests/Api::V1::AscentGymRoutesController%23update?range=2026-06-27+09%3A48%3A53+UTC..2026-06-28+09%3A48%3A53+UTC)