# Api::V1::GymsController#comments

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

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gyms_controller.rb:376 | 347.31 | 1.0 | 44.72% | `Api::V1::GymsController#comments` |
| sql | app/controllers/api/v1/api_controller.rb:17 | 3.27 | 62.69 | 26.39% | `SELECT `comments`.* FROM (SELECT `comments`.* FROM `comments` INNER JOIN gym_ro…` |
| sql | app/models/ascent_gym_route.rb:103 | 1.72 | 18.92 | 4.20% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/serializers/ascent_gym_route_serializer.rb:33 | 1.66 | 18.92 | 4.04% | `SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.44 | 21.54 | 4.00% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/gym_route.rb:139 | 1.96 | 14.38 | 3.63% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.43 | 19.54 | 3.60% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym_route.rb:143 | 1.78 | 14.38 | 3.30% | `SELECT `gym_spaces`.* FROM `gym_spaces` INNER JOIN `gym_sectors` ON `gym_spaces…` |
| sql | app/serializers/gym_route_serializer.rb:54 | 1.57 | 14.38 | 2.91% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/models/gym_route.rb:59 | 2.03 | 6.62 | 1.73% | `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=1d)