# Api::V1::CommonsController#active_gyms

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

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/commons_controller.rb:82 | 379.0 | 1.0 | 48.19% | `Api::V1::CommonsController#active_gyms` |
| sql | app/controllers/api/v1/commons_controller.rb:100 | 1.41 | 146.0 | 26.13% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/commons_controller.rb:84 | 126.0 | 1.0 | 16.02% | `SELECT gyms.id, COUNT(gym_routes.id), MAX(opened_at) FROM gyms INNER JOIN gym_s…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.29 | 14.0 | 2.29% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.11 | 14.0 | 1.97% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym.rb:297 | 1.33 | 9.0 | 1.53% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/gym.rb:284 | 1.43 | 7.0 | 1.27% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/gym.rb:295 | 1.21 | 7.0 | 1.08% | `SELECT COUNT(*) FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `…` |

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