# Api::V1::GymsController#tree_structures

- **Period:** 24 May 00:01 UTC – 25 May 00:00 UTC
- **Throughput**: 0.0 / min
- **Average:** 32.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gyms_controller.rb:286 | 17.0 | 1.0 | 53.13% | `Api::V1::GymsController#tree_structures` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.5 | 1.0 | 7.81% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/gyms_controller.rb:328 | 2.0 | 1.0 | 6.25% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/controllers/api/v1/gyms_controller.rb:529 | 2.0 | 1.0 | 6.25% | `SELECT COUNT(*) FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` =…` |
| sql | app/controllers/api/v1/gyms_controller.rb:521 | 1.5 | 1.0 | 4.69% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/gyms_controller.rb:320 | 1.5 | 1.0 | 4.69% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 1.5 | 1.0 | 4.69% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/controllers/api/v1/gyms_controller.rb:297 | 1.5 | 1.0 | 4.69% | `SELECT `gym_space_groups`.* FROM `gym_space_groups` WHERE `gym_space_groups`.`g…` |
| sql | app/controllers/api/v1/gyms_controller.rb:318 | 1.5 | 1.0 | 4.69% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/controllers/concerns/gym_roles_verification.rb:17 | 1.0 | 1.0 | 3.13% | `SELECT `gym_administrators`.* FROM `gym_administrators` WHERE `gym_administrato…` |

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