# Api::V1::CommonsController#active_gyms

- **Period:** 12 May 23:05 UTC – 13 May 11:05 UTC
- **Throughput**: 0.0 / min
- **Average:** 898.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/commons_controller.rb:82 | 435.67 | 1.0 | 48.52% | `Api::V1::CommonsController#active_gyms` |
| sql | app/controllers/api/v1/commons_controller.rb:100 | 1.46 | 146.0 | 23.72% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/commons_controller.rb:84 | 129.67 | 1.0 | 14.44% | `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.26 | 22.67 | 3.19% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.09 | 21.67 | 2.64% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym.rb:297 | 1.43 | 13.33 | 2.12% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/gym.rb:284 | 1.5 | 11.33 | 1.89% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/gym.rb:295 | 1.26 | 11.33 | 1.60% | `SELECT COUNT(*) FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `…` |
| sql | app/models/gym.rb:182 | 1.09 | 11.33 | 1.37% | `SELECT `gym_options`.* FROM `gym_options` WHERE `gym_options`.`gym_id` = ?` |

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