# Api::V1::GymSpacesController#show

- **Period:** 12 May 23:04 UTC – 13 May 11:04 UTC
- **Throughput**: 0.7 / min
- **Average:** 71.8 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gym_spaces_controller.rb:67 | 47.04 | 1.0 | 65.55% | `Api::V1::GymSpacesController#show` |
| sql | app/models/gym_space.rb:200 | 5.57 | 1.0 | 7.75% | `SELECT SUM(coalesce(level_index, ?)) AS ?, SUM(COALESCE(min_grade_value, ?)) AS…` |
| sql | app/models/gym_sector.rb:60 | 1.6 | 3.32 | 7.38% | `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.61 | 1.0 | 3.64% | `Rails::Engine#call` |
| sql | app/models/gym_space.rb:110 | 2.2 | 1.0 | 3.06% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/controllers/concerns/gymable.rb:16 | 1.72 | 1.0 | 2.40% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/gym_space.rb:112 | 1.7 | 1.0 | 2.36% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/controllers/api/v1/gym_spaces_controller.rb:296 | 1.48 | 1.0 | 2.06% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/gym_space.rb:170 | 1.36 | 0.99 | 1.88% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/gym_space.rb:204 | 1.63 | 0.64 | 1.45% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/gym_space.rb:173 | 1.2 | 0.85 | 1.41% | `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=12h)