# MatchesController#update

- **Period:** 24 Jun 05:05 UTC – 24 Jun 08:04 UTC
- **Throughput**: 0.53 / min
- **Average:** 69.8 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/matches_controller.rb:6 | 1.86 | 10.0 | 26.61% | `BEGIN SELECT "experts".* FROM "experts" WHERE "experts"."id" = ? LIMIT ? SELECT…` |
| code | app/controllers/matches_controller.rb:2 | 12.56 | 1.0 | 18.00% | `MatchesController#update` |
| sql | app/models/need.rb:466 | 4.26 | 1.0 | 6.11% | `UPDATE "diagnoses" SET "updated_at" = ? WHERE "diagnoses"."id" = ?` |
| view | app/views/matches/_match.haml | 3.71 | 1.0 | 5.31% |  |
| sql | app/controllers/matches_controller.rb:3 | 3.33 | 1.0 | 4.77% | `SELECT "matches".* FROM "matches" WHERE "matches"."id" = ? LIMIT ?` |
| view | app/views/needs/_match_actions.html.haml | 2.58 | 0.98 | 3.62% |  |
| gc | ruby/gc.c | 2.84 | 0.58 | 2.35% | `GC.start` |
| sql | app/models/user.rb:326 | 0.32 | 4.86 | 2.22% | `SELECT ? AS one FROM "user_rights" WHERE "user_rights"."user_id" = ? AND "user_…` |
| queue | queue | 1.24 | 1.0 | 1.78% |  |
| view | app/views/matches/update.js.haml | 1.2 | 1.0 | 1.72% |  |
| sql | app/models/need.rb:465 | 1.21 | 0.76 | 1.31% | `UPDATE "needs" SET "updated_at" = ?, "status" = ? WHERE "needs"."id" = ?` |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/rack-attack-6.8.0/lib/rack/attack.rb:104 | 0.82 | 1.0 | 1.18% | `Rack::Attack` |
| sql | vendor/bundle/ruby/4.0.0/gems/activesupport-8.1.3/lib/active_support/notifications/fanout.rb:158 | 0.77 | 1.0 | 1.10% | `SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC …` |
| view | app/views/feedbacks/_form.html.haml | 1.21 | 0.6 | 1.04% |  |
| sql | app/models/expert.rb:295 | 0.72 | 1.0 | 1.03% | `SELECT COUNT(*) FROM "users" INNER JOIN "experts_users" ON "users"."id" = "expe…` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/135976/requests/MatchesController%23update?range=3h)