# Api::V1::GymSpacesController#groups

- **Period:** 13 May 09:37 UTC – 13 May 10:37 UTC
- **Throughput**: 2.58 / min
- **Average:** 57.3 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gym_spaces_controller.rb:24 | 33.26 | 1.0 | 58.00% | `Api::V1::GymSpacesController#groups` |
| sql | app/models/gym_space.rb:98 | 3.79 | 4.19 | 27.69% | `SELECT MAX(opened_at) AS max_opened_at, COUNT(*) AS routes_count FROM `gym_rout…` |
| sql | app/controllers/api/v1/gym_spaces_controller.rb:31 | 2.75 | 1.0 | 4.80% | `SELECT `gym_spaces`.* FROM `gym_spaces` LEFT JOIN gym_space_groups ON gym_space…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.34 | 1.0 | 4.08% | `Rails::Engine#call` |
| sql | app/controllers/concerns/gymable.rb:16 | 2.1 | 1.0 | 3.66% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/gym_spaces_controller.rb:37 | 1.33 | 0.52 | 1.19% | `SELECT `gym_space_groups`.* FROM `gym_space_groups` WHERE `gym_space_groups`.`i…` |

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