# Api::V1::CommonsController#active_gyms

- **Period:** 27 Jun 09:48 UTC – 27 Jun 16:52 UTC
- **Throughput**: 0.01 / min
- **Average:** 608.4 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/commons_controller.rb:75 | 287.0 | 1.0 | 47.17% | `Api::V1::CommonsController#active_gyms` |
| sql | app/controllers/api/v1/commons_controller.rb:93 | 1.07 | 144.0 | 25.31% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/commons_controller.rb:77 | 108.4 | 1.0 | 17.82% | `SELECT gyms.id, COUNT(gym_routes.id), MAX(opened_at) FROM gyms INNER JOIN gym_s…` |
| sql | app/models/gym.rb:282 | 2.52 | 6.6 | 2.73% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 0.85 | 13.2 | 1.84% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 0.8 | 12.8 | 1.68% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym.rb:295 | 1.03 | 6.8 | 1.15% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/135627/requests/Api::V1::CommonsController%23active_gyms?range=2026-06-27+09%3A48%3A53+UTC..2026-06-28+09%3A48%3A53+UTC)