# MatchesController#update

- **Period:** 24 Jun 02:07 UTC – 24 Jun 08:06 UTC
- **Throughput**: 0.27 / min
- **Average:** 71.1 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/matches_controller.rb:6 | 1.97 | 10.0 | 27.70% | `BEGIN SELECT "experts".* FROM "experts" WHERE "experts"."id" = ? LIMIT ? SELECT…` |
| code | app/controllers/matches_controller.rb:2 | 12.56 | 1.0 | 17.66% | `MatchesController#update` |
| sql | app/models/need.rb:466 | 4.18 | 1.0 | 5.87% | `UPDATE "diagnoses" SET "updated_at" = ? WHERE "diagnoses"."id" = ?` |
| view | app/views/matches/_match.haml | 3.69 | 1.0 | 5.19% |  |
| sql | app/controllers/matches_controller.rb:3 | 3.38 | 1.0 | 4.75% | `SELECT "matches".* FROM "matches" WHERE "matches"."id" = ? LIMIT ?` |
| view | app/views/needs/_match_actions.html.haml | 2.62 | 0.98 | 3.61% |  |
| gc | ruby/gc.c | 2.89 | 0.58 | 2.35% | `GC.start` |
| sql | app/models/user.rb:326 | 0.32 | 4.85 | 2.17% | `SELECT ? AS one FROM "user_rights" WHERE "user_rights"."user_id" = ? AND "user_…` |
| queue | queue | 1.37 | 1.0 | 1.93% |  |
| view | app/views/matches/update.js.haml | 1.21 | 1.0 | 1.70% |  |
| sql | app/models/need.rb:465 | 1.23 | 0.75 | 1.30% | `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.16% | `Rack::Attack` |
| sql | vendor/bundle/ruby/4.0.0/gems/activesupport-8.1.3/lib/active_support/notifications/fanout.rb:158 | 0.76 | 1.0 | 1.07% | `SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC …` |
| view | app/views/feedbacks/_form.html.haml | 1.21 | 0.59 | 1.00% |  |

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