# Api::V1::PublicationAttachmentsController#create_bulk

- **Period:** 24 May 00:03 UTC – 25 May 00:02 UTC
- **Throughput**: 0.0 / min
- **Average:** 121.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/publication_attachments_controller.rb:34 | 59.0 | 1.0 | 48.76% | `Api::V1::PublicationAttachmentsController#create_bulk` |
| sql | app/controllers/api/v1/publication_attachments_controller.rb:36 | 1.9 | 10.0 | 15.70% | `SELECT `publication_attachments`.* FROM `publication_attachments` WHERE `public…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.5 | 4.0 | 4.96% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.25 | 4.0 | 4.13% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/controllers/api/v1/publication_attachments_controller.rb:43 | 2.0 | 2.0 | 3.31% | `UPDATE `publications` SET `publications`.`attachables_count` = ?, `publications…` |
| sql | app/models/gym_route.rb:139 | 1.5 | 2.0 | 2.48% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/models/gym.rb:297 | 1.5 | 2.0 | 2.48% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/gym_route.rb:113 | 1.5 | 2.0 | 2.48% | `SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ?` |
| 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 | 1.65% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 2.0 | 1.0 | 1.65% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/gym_route.rb:143 | 1.0 | 2.0 | 1.65% | `SELECT `gym_spaces`.* FROM `gym_spaces` INNER JOIN `gym_sectors` ON `gym_spaces…` |
| sql | app/controllers/concerns/gym_roles_verification.rb:13 | 2.0 | 1.0 | 1.65% | `SELECT ? AS one FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` =…` |
| sql | app/models/publication.rb:76 | 1.0 | 2.0 | 1.65% | `BEGIN SELECT `publication_attachments`.* FROM `publication_attachments` WHERE `…` |
| sql | app/serializers/gym_route_serializer.rb:54 | 1.0 | 2.0 | 1.65% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |

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