# Api::V1::CommentsController#create

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

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/comments_controller.rb:43 | 30.55 | 1.0 | 52.42% | `Api::V1::CommentsController#create` |
| sql | app/controllers/api/v1/comments_controller.rb:46 | 1.84 | 5.18 | 16.38% | `BEGIN SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`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.91 | 1.0 | 4.99% | `Rails::Engine#call` |
| sql | app/models/gym_route.rb:314 | 1.2 | 2.27 | 4.68% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.64 | 1.0 | 2.81% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/controllers/api/v1/api_controller.rb:26 | 1.55 | 1.0 | 2.65% | `SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW(…` |
| sql | app/models/gym_route.rb:143 | 1.78 | 0.82 | 2.50% | `SELECT `gym_spaces`.* FROM `gym_spaces` INNER JOIN `gym_sectors` ON `gym_spaces…` |
| sql | app/models/gym_route.rb:139 | 1.67 | 0.82 | 2.34% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/serializers/gym_route_serializer.rb:54 | 1.56 | 0.82 | 2.18% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 1.27 | 1.0 | 2.18% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/gym_route.rb:313 | 1.33 | 0.82 | 1.87% | `SELECT SUM(`ascents`.`comments_count`) FROM `ascents` WHERE `ascents`.`type` = …` |
| sql | app/models/gym_route.rb:437 | 1.33 | 0.82 | 1.87% | `SELECT `contest_routes`.* FROM `contest_routes` WHERE `contest_routes`.`gym_rou…` |
| sql | app/models/gym_route.rb:113 | 1.0 | 0.82 | 1.40% | `SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ?` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.17 | 0.55 | 1.09% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |

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