# Api::V1::GymsController#routes

- **Period:** 12 May 11:58 UTC – 13 May 11:58 UTC
- **Throughput**: 0.01 / min
- **Average:** 524.1 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gyms_controller.rb:239 | 339.5 | 1.0 | 64.78% | `Api::V1::GymsController#routes` |
| sql | app/models/gym_route.rb:143 | 1.6 | 16.79 | 5.14% | `SELECT `gym_spaces`.* FROM `gym_spaces` INNER JOIN `gym_sectors` ON `gym_spaces…` |
| sql | app/models/gym_route.rb:249 | 1.45 | 16.79 | 4.65% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/models/gym_route.rb:254 | 0.51 | 46.07 | 4.53% | `SELECT `gym_route_covers`.* FROM `gym_route_covers` WHERE `gym_route_covers`.`i…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.34 | 16.79 | 4.29% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/gym_route.rb:226 | 1.34 | 16.79 | 4.29% | `SELECT `gym_openers`.* FROM `gym_openers` INNER JOIN `gym_route_openers` ON `gy…` |
| sql | app/models/gym_route.rb:113 | 0.8 | 27.71 | 4.25% | `SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ?` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.11 | 15.36 | 3.24% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym_route.rb:59 | 2.26 | 2.79 | 1.20% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/controllers/api/v1/gyms_controller.rb:251 | 5.93 | 1.0 | 1.13% | `SELECT `gym_routes`.* FROM `gym_routes` INNER JOIN `gym_sectors` ON `gym_routes…` |
| sql | app/models/gym_route.rb:61 | 1.81 | 3.07 | 1.06% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |

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