# Api::V1::AscentGymRoutesController#add_bulk

- **Period:** 27 Jun 09:48 UTC – 27 Jun 17:11 UTC
- **Throughput**: 0.02 / min
- **Average:** 154.4 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/ascent_gym_routes_controller.rb:167 | 81.0 | 1.0 | 52.47% | `Api::V1::AscentGymRoutesController#add_bulk` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:199 | 1.22 | 15.27 | 12.07% | `BEGIN INSERT INTO `ascents` (`type`, `ascent_status`, `user_id`, `gym_route_id`…` |
| sql | app/models/gym_route.rb:176 | 0.84 | 15.09 | 8.19% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/ascent_gym_route.rb:131 | 1.32 | 5.09 | 4.36% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/ascent.rb:58 | 1.02 | 5.64 | 3.71% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/ascent.rb:56 | 1.07 | 5.09 | 3.53% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |
| sql | app/models/ascent_gym_route.rb:129 | 1.04 | 4.91 | 3.30% | `SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT ?` |
| sql | app/models/gym_route.rb:426 | 0.91 | 5.09 | 3.00% | `SELECT `contest_routes`.* FROM `contest_routes` WHERE `contest_routes`.`gym_rou…` |
| sql | app/models/ascent.rb:60 | 0.88 | 5.09 | 2.89% | `UPDATE `ascents` SET `ascents`.`climbing_session_id` = ? WHERE `ascents`.`id` =…` |
| sql | app/models/gym_route.rb:150 | 0.88 | 5.09 | 2.89% | `SELECT `ascents`.`hardness_status`, `ascents`.`ascent_status`, `ascents`.`user_…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.09 | 1.0 | 1.35% | `Rails::Engine#call` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/135627/requests/Api::V1::AscentGymRoutesController%23add_bulk?range=2026-06-27+09%3A48%3A53+UTC..2026-06-28+09%3A48%3A53+UTC)