# Api::V1::CommonsController#last_contributions

- **Period:** 12 May 19:57 UTC – 13 May 19:57 UTC
- **Throughput**: 0.01 / min
- **Average:** 120.5 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/commons_controller.rb:105 | 52.09 | 1.0 | 43.21% | `Api::V1::CommonsController#last_contributions` |
| sql | app/models/publication_views_mapper.rb:57 | 1.57 | 16.36 | 21.34% | `BEGIN SELECT `publications`.* FROM `publications` WHERE `publications`.`id` = ?…` |
| sql | app/controllers/api/v1/api_controller.rb:17 | 1.15 | 15.0 | 14.33% | `SELECT `publication_attachments`.`id` FROM `publication_attachments` WHERE `pub…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.2 | 5.0 | 4.98% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/publication_views_mapper.rb:25 | 1.75 | 2.91 | 4.22% | `SELECT `publications`.* FROM `publications` WHERE `publications`.`publishable_t…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.13 | 4.36 | 4.07% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.64 | 1.0 | 2.19% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/api_controller.rb:73 | 1.55 | 1.0 | 1.28% | `SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?` |
| sql | app/models/gym.rb:295 | 1.33 | 1.09 | 1.21% | `SELECT COUNT(*) FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `…` |
| sql | app/models/publication_views_mapper.rb:29 | 1.36 | 1.0 | 1.13% | `SELECT COUNT(*) FROM `publication_views` WHERE `publication_views`.`user_id` = …` |
| sql | app/models/publication_views_mapper.rb:64 | 1.67 | 0.82 | 1.13% | `SELECT `notifications`.* FROM `notifications` WHERE `notifications`.`notificati…` |

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