# MatchesController#update

- **Period:** 24 Jun 07:35 UTC – 24 Jun 08:04 UTC
- **Throughput**: 1.33 / min
- **Average:** 86.6 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/matches_controller.rb:6 | 2.71 | 10.0 | 31.29% | `BEGIN SELECT "experts".* FROM "experts" WHERE "experts"."id" = ? LIMIT ? SELECT…` |
| code | app/controllers/matches_controller.rb:2 | 13.08 | 1.0 | 15.10% | `MatchesController#update` |
| sql | app/models/need.rb:466 | 9.18 | 1.0 | 10.59% | `UPDATE "diagnoses" SET "updated_at" = ? WHERE "diagnoses"."id" = ?` |
| sql | app/controllers/matches_controller.rb:3 | 6.05 | 1.0 | 6.99% | `SELECT "matches".* FROM "matches" WHERE "matches"."id" = ? LIMIT ?` |
| view | app/views/matches/_match.haml | 3.9 | 1.0 | 4.50% |  |
| view | app/views/needs/_match_actions.html.haml | 2.5 | 1.0 | 2.89% |  |
| sql | app/models/user.rb:326 | 0.35 | 4.98 | 1.99% | `SELECT ? AS one FROM "user_rights" WHERE "user_rights"."user_id" = ? AND "user_…` |
| view | app/views/matches/update.js.haml | 1.23 | 1.0 | 1.41% |  |
| gc | ruby/gc.c | 2.19 | 0.53 | 1.33% | `GC.start` |
| sql | app/models/need.rb:465 | 1.52 | 0.68 | 1.18% | `UPDATE "needs" SET "updated_at" = ?, "status" = ? WHERE "needs"."id" = ?` |
| sql | vendor/bundle/ruby/4.0.0/gems/activesupport-8.1.3/lib/active_support/notifications/fanout.rb:158 | 0.98 | 1.0 | 1.13% | `SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC …` |
| queue | queue | 0.95 | 1.0 | 1.10% |  |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/rack-attack-6.8.0/lib/rack/attack.rb:104 | 0.9 | 1.0 | 1.04% | `Rack::Attack` |

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