# Api::V1::GymSectorsController#last_routes_with_pictures

- **Period:** 13 May 05:10 UTC – 13 May 11:10 UTC
- **Throughput**: 0.0 / min
- **Average:** 29.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gym_sectors_controller.rb:82 | 16.0 | 1.0 | 55.17% | `Api::V1::GymSectorsController#last_routes_with_pictures` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 2.0 | 1.0 | 6.90% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.0 | 1.0 | 6.90% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/gym_sectors_controller.rb:84 | 2.0 | 1.0 | 6.90% | `SELECT DISTINCT `gym_routes`.`gym_route_cover_id` FROM `gym_routes` WHERE `gym_…` |
| sql | app/models/gym_route_cover.rb:29 | 1.0 | 2.0 | 6.90% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/controllers/api/v1/gym_sectors_controller.rb:88 | 1.0 | 1.0 | 3.45% | `SELECT `gym_route_covers`.* FROM `gym_route_covers` WHERE (`gym_route_covers`.`…` |
| sql | app/controllers/api/v1/gym_sectors_controller.rb:103 | 1.0 | 1.0 | 3.45% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/controllers/api/v1/gym_sectors_controller.rb:107 | 1.0 | 1.0 | 3.45% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/controllers/concerns/gymable.rb:16 | 1.0 | 1.0 | 3.45% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/controllers/concerns/gym_roles_verification.rb:13 | 1.0 | 1.0 | 3.45% | `SELECT ? AS one FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` =…` |

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