# Api::V1::CommonsController#active_gyms

- **Period:** 12 May 11:52 UTC – 13 May 11:52 UTC
- **Throughput**: 0.0 / min
- **Average:** 1101.5 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/commons_controller.rb:82 | 494.5 | 1.0 | 44.89% | `Api::V1::CommonsController#active_gyms` |
| sql | app/controllers/api/v1/commons_controller.rb:100 | 1.5 | 146.0 | 19.90% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/commons_controller.rb:84 | 183.33 | 1.0 | 16.64% | `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.22 | 39.67 | 4.39% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.14 | 37.0 | 3.83% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym.rb:297 | 1.43 | 24.67 | 3.19% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/gym.rb:284 | 1.41 | 19.83 | 2.54% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/gym.rb:295 | 1.23 | 19.83 | 2.21% | `SELECT COUNT(*) FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `…` |
| sql | app/models/gym.rb:182 | 1.15 | 19.83 | 2.07% | `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=1d)