# Api::V1::GymsController#comments

- **Period:** 13 May 05:04 UTC – 13 May 11:04 UTC
- **Throughput**: 0.0 / min
- **Average:** 948.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gyms_controller.rb:376 | 377.0 | 1.0 | 39.77% | `Api::V1::GymsController#comments` |
| sql | app/controllers/api/v1/api_controller.rb:17 | 4.47 | 73.0 | 34.39% | `SELECT `comments`.* FROM (SELECT `comments`.* FROM `comments` INNER JOIN gym_ro…` |
| sql | app/models/ascent_gym_route.rb:103 | 1.55 | 22.0 | 3.59% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/serializers/ascent_gym_route_serializer.rb:33 | 1.5 | 22.0 | 3.48% | `SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `…` |
| sql | app/models/gym_route.rb:139 | 2.07 | 15.0 | 3.27% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.41 | 22.0 | 3.27% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.43 | 21.0 | 3.16% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym_route.rb:143 | 1.73 | 15.0 | 2.74% | `SELECT `gym_spaces`.* FROM `gym_spaces` INNER JOIN `gym_sectors` ON `gym_spaces…` |
| sql | app/serializers/gym_route_serializer.rb:54 | 1.53 | 15.0 | 2.43% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/models/gym_route.rb:59 | 1.7 | 10.0 | 1.79% | `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%23comments?range=6h)