# Api::V1::GymRoutesController#paginated

- **Period:** 13 May 10:39 UTC – 13 May 11:09 UTC
- **Throughput**: 5.0 / min
- **Average:** 114.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gym_routes_controller.rb:84 | 73.35 | 1.0 | 64.32% | `Api::V1::GymRoutesController#paginated` |
| sql | app/controllers/api/v1/gym_routes_controller.rb:142 | 6.38 | 4.71 | 26.37% | `SELECT DISTINCT gym_sectors.order, gym_sectors.name, gym_sectors.id, gym_routes…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.82 | 1.0 | 2.47% | `Rails::Engine#call` |
| sql | app/models/gym_route_ascents_mapper.rb:26 | 2.16 | 0.94 | 1.78% | `SELECT COUNT(*) FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`user_i…` |
| sql | app/controllers/concerns/gymable.rb:16 | 1.85 | 1.0 | 1.62% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/api/v1/api_controller.rb:73 | 1.79 | 0.94 | 1.48% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/135627/requests/Api::V1::GymRoutesController%23paginated?range=30m)