# Api::V1::AscentCragRoutesController#update

- **Period:** 13 May 11:06 UTC – 13 May 12:06 UTC
- **Throughput**: 0.02 / min
- **Average:** 151.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/ascent_crag_routes_controller.rb:55 | 105.0 | 1.0 | 69.54% | `Api::V1::AscentCragRoutesController#update` |
| sql | app/controllers/api/v1/ascent_crag_routes_controller.rb:56 | 1.4 | 5.0 | 4.64% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/user.rb:149 | 6.0 | 1.0 | 3.97% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`use…` |
| sql | app/models/crag_route.rb:163 | 2.0 | 2.0 | 2.65% | `SELECT `crag_sectors`.* FROM `crag_sectors` WHERE (`crag_sectors`.`deleted_at` …` |
| sql | app/models/concerns/gap_gradable.rb:11 | 2.0 | 2.0 | 2.65% | `SELECT `crag_routes`.* FROM `crag_routes` WHERE (`crag_routes`.`deleted_at` IS …` |
| sql | app/models/concerns/gap_gradable.rb:10 | 1.5 | 2.0 | 1.99% | `SELECT `crag_routes`.* FROM `crag_routes` WHERE (`crag_routes`.`deleted_at` IS …` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.0 | 1.0 | 1.32% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/api_controller.rb:26 | 2.0 | 1.0 | 1.32% | `SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW(…` |
| sql | app/models/crag_route.rb:135 | 2.0 | 1.0 | 1.32% | `SELECT COUNT(DISTINCT ascents.user_id) AS count FROM `ascents` WHERE `ascents`.…` |
| sql | app/models/crag.rb:124 | 2.0 | 1.0 | 1.32% | `SELECT DISTINCT `crag_routes`.`climbing_type` FROM `crag_routes` WHERE (`crag_r…` |
| sql | app/models/crag_sector.rb:162 | 2.0 | 1.0 | 1.32% | `SELECT `crags`.* FROM `crags` WHERE (`crags`.`deleted_at` IS NULL OR `crags`.`d…` |
| sql | app/models/ascent_crag_route.rb:124 | 1.0 | 2.0 | 1.32% | `BEGIN SELECT `crag_routes`.* FROM `crag_routes` WHERE (`crag_routes`.`deleted_a…` |
| sql | app/models/ascent.rb:56 | 2.0 | 1.0 | 1.32% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |

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