# Api::V1::AscentGymRoutesController#update

- **Period:** 12 May 11:07 UTC – 13 May 11:07 UTC
- **Throughput**: 0.06 / min
- **Average:** 65.8 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/ascent_gym_routes_controller.rb:206 | 32.46 | 1.0 | 49.32% | `Api::V1::AscentGymRoutesController#update` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:218 | 1.82 | 2.74 | 7.58% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/gym_route.rb:187 | 1.44 | 2.05 | 4.48% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.89 | 1.0 | 4.39% | `Rails::Engine#call` |
| sql | app/models/ascent_gym_route.rb:186 | 1.28 | 1.65 | 3.23% | `BEGIN SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:240 | 2.06 | 0.96 | 3.02% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`use…` |
| sql | app/models/ascent_gym_route.rb:132 | 1.96 | 0.96 | 2.87% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/ascent.rb:56 | 1.94 | 0.96 | 2.83% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |
| sql | app/controllers/api/v1/api_controller.rb:26 | 1.59 | 1.0 | 2.42% | `SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW(…` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 1.58 | 1.0 | 2.40% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/gym_route.rb:437 | 1.45 | 0.96 | 2.12% | `SELECT `contest_routes`.* FROM `contest_routes` WHERE `contest_routes`.`gym_rou…` |
| sql | app/models/gym_route.rb:161 | 1.44 | 0.96 | 2.10% | `SELECT `ascents`.`hardness_status`, `ascents`.`ascent_status`, `ascents`.`user_…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:250 | 1.37 | 1.0 | 2.08% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`id`…` |
| sql | app/models/ascent.rb:60 | 1.35 | 0.96 | 1.97% | `UPDATE `ascents` SET `ascents`.`climbing_session_id` = ? WHERE `ascents`.`id` =…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:214 | 1.46 | 0.86 | 1.91% | `SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `…` |
| sql | app/models/ascent.rb:59 | 1.26 | 0.96 | 1.84% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |
| sql | app/models/ascent.rb:58 | 1.22 | 0.98 | 1.80% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:215 | 1.75 | 0.4 | 1.05% | `BEGIN SELECT `reports`.* FROM `reports` WHERE `reports`.`reportable_id` = ? AND…` |

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