# Api::V1::AscentGymRoutesController#add_bulk

- **Period:** 12 May 12:03 UTC – 13 May 12:03 UTC
- **Throughput**: 0.03 / min
- **Average:** 163.1 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/ascent_gym_routes_controller.rb:167 | 78.45 | 1.0 | 48.10% | `Api::V1::AscentGymRoutesController#add_bulk` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:199 | 1.91 | 11.15 | 13.09% | `BEGIN INSERT INTO `ascents` (`type`, `ascent_status`, `user_id`, `gym_route_id`…` |
| sql | app/models/gym_route.rb:187 | 1.34 | 10.95 | 9.03% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/ascent_gym_route.rb:132 | 1.79 | 3.7 | 4.06% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/ascent.rb:56 | 1.79 | 3.7 | 4.06% | `SELECT `climbing_sessions`.* FROM `climbing_sessions` WHERE `climbing_sessions`…` |
| sql | app/models/ascent.rb:60 | 1.59 | 3.7 | 3.60% | `UPDATE `ascents` SET `ascents`.`climbing_session_id` = ? WHERE `ascents`.`id` =…` |
| sql | app/models/ascent.rb:58 | 1.42 | 3.9 | 3.40% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/gym_route.rb:161 | 1.42 | 3.7 | 3.22% | `SELECT `ascents`.`hardness_status`, `ascents`.`ascent_status`, `ascents`.`user_…` |
| sql | app/models/gym_route.rb:437 | 1.32 | 3.7 | 3.00% | `SELECT `contest_routes`.* FROM `contest_routes` WHERE `contest_routes`.`gym_rou…` |
| sql | app/models/ascent_gym_route.rb:130 | 1.49 | 3.2 | 2.93% | `SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT ?` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 3.03 | 1.0 | 1.85% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:240 | 2.08 | 1.0 | 1.27% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`use…` |

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