# MatchesController#update

- **Period:** 24 Jun 07:07 UTC – 24 Jun 08:06 UTC
- **Throughput**: 0.97 / min
- **Average:** 76.1 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/matches_controller.rb:6 | 2.13 | 10.0 | 28.00% | `BEGIN SELECT "experts".* FROM "experts" WHERE "experts"."id" = ? LIMIT ? SELECT…` |
| code | app/controllers/matches_controller.rb:2 | 12.78 | 1.0 | 16.80% | `MatchesController#update` |
| sql | app/models/need.rb:466 | 6.55 | 1.0 | 8.61% | `UPDATE "diagnoses" SET "updated_at" = ? WHERE "diagnoses"."id" = ?` |
| sql | app/controllers/matches_controller.rb:3 | 4.66 | 1.0 | 6.12% | `SELECT "matches".* FROM "matches" WHERE "matches"."id" = ? LIMIT ?` |
| view | app/views/matches/_match.haml | 3.74 | 1.0 | 4.92% |  |
| view | app/views/needs/_match_actions.html.haml | 2.66 | 0.97 | 3.38% |  |
| sql | app/models/user.rb:326 | 0.34 | 4.88 | 2.20% | `SELECT ? AS one FROM "user_rights" WHERE "user_rights"."user_id" = ? AND "user_…` |
| gc | ruby/gc.c | 2.59 | 0.5 | 1.70% | `GC.start` |
| view | app/views/matches/update.js.haml | 1.24 | 1.0 | 1.63% |  |
| queue | queue | 1.24 | 1.0 | 1.63% |  |
| sql | app/models/need.rb:465 | 1.33 | 0.69 | 1.20% | `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.88 | 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.83 | 1.0 | 1.09% | `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=1h)