# Api::V1::CommonsController#active_gyms

- **Period:** 26 Jun 20:16 UTC – 27 Jun 09:48 UTC
- **Throughput**: 0.0 / min
- **Average:** 621.3 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/commons_controller.rb:75 | 291.33 | 1.0 | 46.89% | `Api::V1::CommonsController#active_gyms` |
| sql | app/controllers/api/v1/commons_controller.rb:93 | 1.13 | 144.0 | 26.18% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/commons_controller.rb:77 | 120.33 | 1.0 | 19.37% | `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.06 | 11.33 | 1.93% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 0.85 | 11.33 | 1.56% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym.rb:295 | 1.0 | 6.67 | 1.07% | `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-26+20%3A16%3A09+UTC..2026-06-27+09%3A48%3A53+UTC)