# Api::V1::AscentGymRoutesController#destroy

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

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/ascent_gym_routes_controller.rb:226 | 16.0 | 1.0 | 39.02% | `Api::V1::AscentGymRoutesController#destroy` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:227 | 1.75 | 4.0 | 17.07% | `BEGIN SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ?…` |
| sql | app/models/gym_route.rb:187 | 1.5 | 2.0 | 7.32% | `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 | 3.0 | 1.0 | 7.32% | `Rails::Engine#call` |
| sql | app/models/ascent_gym_route.rb:123 | 2.0 | 1.0 | 4.88% | `SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT ?` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:240 | 2.0 | 1.0 | 4.88% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`use…` |
| sql | app/controllers/api/v1/api_controller.rb:26 | 2.0 | 1.0 | 4.88% | `SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW(…` |
| sql | app/models/ascent.rb:66 | 1.0 | 1.0 | 2.44% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 1.0 | 1.0 | 2.44% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/gym_route.rb:161 | 1.0 | 1.0 | 2.44% | `SELECT `ascents`.`hardness_status`, `ascents`.`ascent_status`, `ascents`.`user_…` |
| sql | app/models/gym_route.rb:437 | 1.0 | 1.0 | 2.44% | `SELECT `contest_routes`.* FROM `contest_routes` WHERE `contest_routes`.`gym_rou…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:250 | 1.0 | 1.0 | 2.44% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`id`…` |
| sql | app/models/climbing_session.rb:133 | 1.0 | 1.0 | 2.44% | `SELECT COUNT(*) FROM `ascents` WHERE `ascents`.`climbing_session_id` = ?` |

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