# Api::V1::AscentGymRoutesController#update

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

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/ascent_gym_routes_controller.rb:206 | 35.45 | 1.0 | 54.47% | `Api::V1::AscentGymRoutesController#update` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:218 | 1.76 | 2.64 | 7.12% | `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.82 | 1.0 | 4.33% | `Rails::Engine#call` |
| sql | app/models/gym_route.rb:187 | 1.33 | 1.64 | 3.35% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:240 | 2.1 | 0.91 | 2.93% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`use…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:250 | 1.82 | 1.0 | 2.79% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`id`…` |
| sql | app/models/ascent_gym_route.rb:186 | 1.06 | 1.64 | 2.65% | `BEGIN SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT…` |
| sql | app/models/ascent_gym_route.rb:132 | 1.8 | 0.91 | 2.51% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/controllers/api/v1/api_controller.rb:26 | 1.64 | 1.0 | 2.51% | `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.7 | 0.91 | 2.37% | `SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `…` |
| sql | app/models/ascent.rb:56 | 1.6 | 0.91 | 2.23% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |
| sql | app/models/gym_route.rb:437 | 1.5 | 0.91 | 2.09% | `SELECT `contest_routes`.* FROM `contest_routes` WHERE `contest_routes`.`gym_rou…` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 1.36 | 1.0 | 2.09% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/ascent.rb:58 | 1.09 | 1.0 | 1.68% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/gym_route.rb:161 | 1.1 | 0.91 | 1.54% | `SELECT `ascents`.`hardness_status`, `ascents`.`ascent_status`, `ascents`.`user_…` |
| sql | app/models/ascent.rb:59 | 1.1 | 0.91 | 1.54% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |
| sql | app/models/ascent.rb:60 | 1.1 | 0.91 | 1.54% | `UPDATE `ascents` SET `ascents`.`climbing_session_id` = ? WHERE `ascents`.`id` =…` |
| sql | app/models/climbing_session.rb:133 | 1.29 | 0.64 | 1.26% | `SELECT COUNT(*) FROM `ascents` WHERE `ascents`.`climbing_session_id` = ?` |

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