# Api::V1::GymsController#comments

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

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gyms_controller.rb:376 | 377.5 | 1.0 | 39.28% | `Api::V1::GymsController#comments` |
| sql | app/controllers/api/v1/api_controller.rb:17 | 4.65 | 73.0 | 35.33% | `SELECT `comments`.* FROM (SELECT `comments`.* FROM `comments` INNER JOIN gym_ro…` |
| sql | app/models/ascent_gym_route.rb:103 | 1.64 | 22.0 | 3.75% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/serializers/ascent_gym_route_serializer.rb:33 | 1.43 | 22.0 | 3.28% | `SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.43 | 22.0 | 3.28% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/gym_route.rb:139 | 2.1 | 15.0 | 3.28% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.33 | 21.0 | 2.91% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym_route.rb:143 | 1.77 | 15.0 | 2.76% | `SELECT `gym_spaces`.* FROM `gym_spaces` INNER JOIN `gym_sectors` ON `gym_spaces…` |
| sql | app/serializers/gym_route_serializer.rb:54 | 1.63 | 15.0 | 2.55% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/models/gym_route.rb:59 | 1.7 | 10.0 | 1.77% | `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=12h)