# Api::V1::GymSpacesController#show

- **Period:** 13 May 10:42 UTC – 13 May 11:12 UTC
- **Throughput**: 1.53 / min
- **Average:** 66.4 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gym_spaces_controller.rb:67 | 39.87 | 1.0 | 60.05% | `Api::V1::GymSpacesController#show` |
| sql | app/models/gym_sector.rb:60 | 1.43 | 4.0 | 8.64% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/gym_space.rb:200 | 5.65 | 1.0 | 8.51% | `SELECT SUM(coalesce(level_index, ?)) AS ?, SUM(COALESCE(min_grade_value, ?)) AS…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 4.65 | 1.0 | 7.01% | `Rails::Engine#call` |
| sql | app/models/gym_space.rb:110 | 2.07 | 1.0 | 3.11% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/models/gym_space.rb:112 | 1.63 | 1.0 | 2.46% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/controllers/concerns/gymable.rb:16 | 1.63 | 1.0 | 2.46% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/gym_spaces_controller.rb:296 | 1.3 | 1.0 | 1.96% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/gym_space.rb:170 | 1.24 | 1.0 | 1.87% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/gym_space.rb:173 | 1.24 | 0.98 | 1.83% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym_space.rb:204 | 1.44 | 0.7 | 1.51% | `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=30m)