# MatchesController#update

- **Period:** 23 Jun 10:09 UTC – 23 Jun 13:28 UTC
- **Throughput**: 1.11 / min
- **Average:** 87.4 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/matches_controller.rb:6 | 3.24 | 9.95 | 36.91% | `BEGIN SELECT "experts".* FROM "experts" WHERE "experts"."id" = ? LIMIT ? SELECT…` |
| code | app/controllers/matches_controller.rb:2 | 16.12 | 1.0 | 18.45% | `MatchesController#update` |
| view | app/views/matches/_match.haml | 4.24 | 1.0 | 4.85% |  |
| view | app/views/needs/_match_actions.html.haml | 3.34 | 0.99 | 3.79% |  |
| gc | ruby/gc.c | 3.68 | 0.64 | 2.69% | `GC.start` |
| sql | app/controllers/matches_controller.rb:3 | 1.88 | 1.0 | 2.15% | `SELECT "matches".* FROM "matches" WHERE "matches"."id" = ? LIMIT ?` |
| sql | app/models/user.rb:326 | 0.38 | 4.7 | 2.03% | `SELECT ? AS one FROM "user_rights" WHERE "user_rights"."user_id" = ? AND "user_…` |
| sql | app/policies/match_policy.rb:3 | 1.51 | 0.99 | 1.71% | `SELECT ? AS one FROM "users" INNER JOIN "experts_users" ON "users"."id" = "expe…` |
| view | app/views/matches/update.js.haml | 1.45 | 1.0 | 1.66% |  |
| sql | app/models/need.rb:465 | 1.97 | 0.68 | 1.53% | `UPDATE "needs" SET "updated_at" = ?, "status" = ? WHERE "needs"."id" = ?` |
| sql | app/models/expert.rb:295 | 1.15 | 1.0 | 1.32% | `SELECT COUNT(*) FROM "users" INNER JOIN "experts_users" ON "users"."id" = "expe…` |
| queue | queue | 1.1 | 1.0 | 1.26% |  |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/rack-attack-6.8.0/lib/rack/attack.rb:104 | 0.94 | 1.0 | 1.07% | `Rack::Attack` |
| sql | vendor/bundle/ruby/4.0.0/gems/activesupport-8.1.3/lib/active_support/notifications/fanout.rb:158 | 0.91 | 1.0 | 1.05% | `SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC …` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/135976/requests/MatchesController%23update?range=2026-06-23+10%3A09%3A45+UTC..2026-06-23+13%3A28%3A11+UTC)