# Api::V1::AscentGymRoutesController#points

- **Period:** 12 May 23:07 UTC – 13 May 11:07 UTC
- **Throughput**: 0.11 / min
- **Average:** 401.6 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/ascent_gym_routes_controller.rb:56 | 234.68 | 1.0 | 58.44% | `Api::V1::AscentGymRoutesController#points` |
| sql | app/models/ascent_gym_route.rb:64 | 1.42 | 17.89 | 6.31% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/ascent_gym_route.rb:36 | 1.36 | 17.89 | 6.07% | `SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `…` |
| sql | app/models/ascent_gym_route.rb:63 | 1.32 | 17.89 | 5.87% | `SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT ?` |
| sql | app/models/gym_route.rb:59 | 1.64 | 12.98 | 5.29% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/controllers/api/v1/ascent_gym_routes_controller.rb:85 | 16.54 | 1.0 | 4.12% | `SELECT `ascents`.* FROM `ascents` INNER JOIN `gym_routes` ON `gym_routes`.`id` …` |
| sql | app/models/gym_route.rb:254 | 1.07 | 7.57 | 2.02% | `SELECT `gym_route_covers`.* FROM `gym_route_covers` WHERE `gym_route_covers`.`i…` |
| sql | app/models/gym_route.rb:61 | 1.56 | 4.28 | 1.66% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/gym_route.rb:143 | 2.02 | 3.15 | 1.59% | `SELECT `gym_spaces`.* FROM `gym_spaces` INNER JOIN `gym_sectors` ON `gym_spaces…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.28 | 3.66 | 1.16% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/gym_route.rb:249 | 1.42 | 3.15 | 1.11% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/models/gym_route.rb:226 | 1.36 | 3.15 | 1.06% | `SELECT `gym_openers`.* FROM `gym_openers` INNER JOIN `gym_route_openers` ON `gy…` |

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