# Api::V1::AscentGymRoutesController#update

- **Period:** 13 May 09:29 UTC – 13 May 10:29 UTC
- **Throughput**: 0.05 / min
- **Average:** 56.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/ascent_gym_routes_controller.rb:206 | 28.67 | 1.0 | 51.19% | `Api::V1::AscentGymRoutesController#update` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:218 | 1.38 | 2.67 | 6.55% | `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.67 | 1.0 | 4.76% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:240 | 2.67 | 1.0 | 4.76% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`use…` |
| sql | app/models/ascent_gym_route.rb:132 | 1.67 | 1.0 | 2.98% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/ascent.rb:56 | 1.67 | 1.0 | 2.98% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |
| sql | app/models/gym_route.rb:437 | 1.67 | 1.0 | 2.98% | `SELECT `contest_routes`.* FROM `contest_routes` WHERE `contest_routes`.`gym_rou…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:250 | 1.33 | 1.0 | 2.38% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`id`…` |
| sql | app/controllers/api/v1/api_controller.rb:26 | 1.33 | 1.0 | 2.38% | `SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW(…` |
| sql | app/models/gym_route.rb:187 | 1.0 | 1.33 | 2.38% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:214 | 1.33 | 1.0 | 2.38% | `SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `…` |
| sql | app/models/ascent.rb:58 | 1.0 | 1.33 | 2.38% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 1.0 | 1.0 | 1.79% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/ascent.rb:60 | 1.0 | 1.0 | 1.79% | `UPDATE `ascents` SET `ascents`.`climbing_session_id` = ? WHERE `ascents`.`id` =…` |
| sql | app/models/ascent_gym_route.rb:130 | 1.5 | 0.67 | 1.79% | `BEGIN SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT…` |
| sql | app/models/ascent_gym_route.rb:186 | 0.75 | 1.33 | 1.79% | `BEGIN SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT…` |
| sql | app/models/gym_route.rb:161 | 1.0 | 1.0 | 1.79% | `SELECT `ascents`.`hardness_status`, `ascents`.`ascent_status`, `ascents`.`user_…` |
| sql | app/models/ascent.rb:59 | 1.0 | 1.0 | 1.79% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |
| sql | app/models/climbing_session.rb:133 | 1.0 | 0.67 | 1.19% | `SELECT COUNT(*) FROM `ascents` WHERE `ascents`.`climbing_session_id` = ?` |

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