# Api::V1::GymSpacesController#show

- **Period:** 13 May 08:12 UTC – 13 May 11:12 UTC
- **Throughput**: 1.5 / min
- **Average:** 74.8 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gym_spaces_controller.rb:67 | 50.05 | 1.0 | 66.93% | `Api::V1::GymSpacesController#show` |
| sql | app/models/gym_space.rb:200 | 5.75 | 1.0 | 7.69% | `SELECT SUM(coalesce(level_index, ?)) AS ?, SUM(COALESCE(min_grade_value, ?)) AS…` |
| sql | app/models/gym_sector.rb:60 | 1.62 | 3.12 | 6.77% | `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.88 | 1.0 | 3.85% | `Rails::Engine#call` |
| sql | app/models/gym_space.rb:110 | 2.13 | 1.0 | 2.85% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/controllers/concerns/gymable.rb:16 | 1.76 | 1.0 | 2.36% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/gym_space.rb:112 | 1.65 | 1.0 | 2.21% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/controllers/api/v1/gym_spaces_controller.rb:296 | 1.45 | 1.0 | 1.94% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/gym_space.rb:170 | 1.39 | 1.0 | 1.85% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/gym_space.rb:173 | 1.23 | 0.9 | 1.48% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym_space.rb:204 | 1.63 | 0.67 | 1.47% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |

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