# Api::V1::GymsController#comments

- **Period:** 13 May 10:53 UTC – 13 May 11:53 UTC
- **Throughput**: 0.02 / min
- **Average:** 178.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/api/v1/api_controller.rb:17 | 16.0 | 6.0 | 53.93% | `SELECT `comments`.* FROM (SELECT `comments`.* FROM `comments` INNER JOIN gym_ro…` |
| code | app/controllers/api/v1/gyms_controller.rb:376 | 49.0 | 1.0 | 27.53% | `Api::V1::GymsController#comments` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.5 | 4.0 | 3.37% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.25 | 4.0 | 2.81% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym_route.rb:139 | 2.5 | 2.0 | 2.81% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/serializers/gym_route_serializer.rb:54 | 2.0 | 2.0 | 2.25% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/models/gym_route.rb:143 | 1.5 | 2.0 | 1.69% | `SELECT `gym_spaces`.* FROM `gym_spaces` INNER JOIN `gym_sectors` ON `gym_spaces…` |
| sql | app/controllers/api/v1/gyms_controller.rb:529 | 2.0 | 1.0 | 1.12% | `SELECT COUNT(*) FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` =…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.0 | 1.0 | 1.12% | `Rails::Engine#call` |
| sql | app/models/gym_route.rb:113 | 1.0 | 2.0 | 1.12% | `SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ?` |

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