# Api::V1::GymSpacesController#show

- **Period:** 13 May 09:28 UTC – 13 May 10:28 UTC
- **Throughput**: 1.95 / min
- **Average:** 59.6 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gym_spaces_controller.rb:67 | 36.56 | 1.0 | 61.31% | `Api::V1::GymSpacesController#show` |
| sql | app/models/gym_space.rb:200 | 5.9 | 1.0 | 9.89% | `SELECT SUM(coalesce(level_index, ?)) AS ?, SUM(COALESCE(min_grade_value, ?)) AS…` |
| sql | app/models/gym_sector.rb:60 | 1.54 | 2.32 | 6.02% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.47 | 1.0 | 4.14% | `Rails::Engine#call` |
| sql | app/models/gym_space.rb:110 | 2.11 | 1.0 | 3.54% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/controllers/concerns/gymable.rb:16 | 1.88 | 1.0 | 3.15% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/gym_space.rb:112 | 1.63 | 1.0 | 2.74% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/models/gym_space.rb:170 | 1.44 | 1.0 | 2.42% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/controllers/api/v1/gym_spaces_controller.rb:296 | 1.41 | 1.0 | 2.37% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/gym_space.rb:204 | 1.63 | 0.72 | 1.96% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/gym_space.rb:173 | 1.21 | 0.89 | 1.81% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |

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