# Api::V1::PublicationsController#update

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

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/publications_controller.rb:124 | 67.0 | 1.0 | 54.47% | `Api::V1::PublicationsController#update` |
| sql | app/controllers/api/v1/publications_controller.rb:126 | 2.67 | 3.0 | 6.50% | `BEGIN UPDATE `publications` SET `publications`.`last_updated_at` = ?, `publicat…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.2 | 5.0 | 4.88% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.0 | 5.0 | 4.07% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/controllers/api/v1/api_controller.rb:17 | 1.67 | 3.0 | 4.07% | `SELECT `gym_spaces`.* FROM `gym_spaces` INNER JOIN `gym_sectors` ON `gym_spaces…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 4.0 | 1.0 | 3.25% | `Rails::Engine#call` |
| sql | app/models/gym_route.rb:139 | 2.0 | 2.0 | 3.25% | `SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_space…` |
| sql | app/controllers/api/v1/publications_controller.rb:162 | 1.33 | 3.0 | 3.25% | `SELECT `publications`.* FROM `publications` WHERE `publications`.`id` = ? LIMIT…` |
| sql | app/serializers/gym_route_serializer.rb:54 | 2.0 | 2.0 | 3.25% | `SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS …` |
| sql | app/models/gym.rb:297 | 1.5 | 2.0 | 2.44% | `SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NUL…` |
| sql | app/models/gym_space.rb:124 | 2.0 | 1.0 | 1.63% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/gym.rb:295 | 2.0 | 1.0 | 1.63% | `SELECT COUNT(*) FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `…` |
| sql | app/controllers/api/v1/api_controller.rb:26 | 2.0 | 1.0 | 1.63% | `SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW(…` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 2.0 | 1.0 | 1.63% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |

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