# Api::V1::GymRoutesController#create

- **Period:** 12 May 23:12 UTC – 13 May 11:12 UTC
- **Throughput**: 0.01 / min
- **Average:** 61.2 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gym_routes_controller.rb:221 | 32.9 | 1.0 | 53.76% | `Api::V1::GymRoutesController#create` |
| sql | app/controllers/api/v1/gym_routes_controller.rb:224 | 1.84 | 5.0 | 15.03% | `BEGIN SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.7 | 1.0 | 4.41% | `Rails::Engine#call` |
| sql | app/models/gym_route.rb:59 | 2.1 | 1.0 | 3.43% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/controllers/api/v1/gym_routes_controller.rb:413 | 1.7 | 1.0 | 2.78% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/controllers/concerns/gymable.rb:16 | 1.5 | 1.0 | 2.45% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/gym_route.rb:143 | 1.5 | 1.0 | 2.45% | `SELECT `gym_spaces`.* FROM `gym_spaces` INNER JOIN `gym_sectors` ON `gym_spaces…` |
| sql | app/controllers/api/v1/api_controller.rb:26 | 1.4 | 1.0 | 2.29% | `SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW(…` |
| sql | app/controllers/api/v1/gym_routes_controller.rb:222 | 1.4 | 1.0 | 2.29% | `SELECT `gym_openers`.* FROM `gym_openers` WHERE `gym_openers`.`id` = ?` |
| sql | app/models/gym_route.rb:113 | 1.4 | 1.0 | 2.29% | `SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ?` |
| sql | app/controllers/concerns/gym_roles_verification.rb:17 | 1.4 | 1.0 | 2.29% | `SELECT `gym_administrators`.* FROM `gym_administrators` WHERE `gym_administrato…` |
| sql | app/controllers/api/v1/gym_routes_controller.rb:417 | 1.3 | 1.0 | 2.12% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 1.3 | 1.0 | 2.12% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/controllers/concerns/gym_roles_verification.rb:13 | 1.2 | 1.0 | 1.96% | `SELECT ? AS one FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` =…` |

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