# MatchesController#update

- **Period:** 23 Jun 18:11 UTC – 24 Jun 06:10 UTC
- **Throughput**: 0.01 / min
- **Average:** 86.2 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/matches_controller.rb:6 | 3.68 | 10.0 | 42.68% | `BEGIN SELECT "experts".* FROM "experts" WHERE "experts"."id" = ? LIMIT ? SELECT…` |
| code | app/controllers/matches_controller.rb:2 | 12.3 | 1.0 | 14.27% | `MatchesController#update` |
| view | app/views/needs/_match_actions.html.haml | 3.4 | 1.0 | 3.94% |  |
| view | app/views/matches/_match.haml | 2.9 | 1.0 | 3.36% |  |
| sql | app/controllers/matches_controller.rb:3 | 2.6 | 1.0 | 3.02% | `SELECT "matches".* FROM "matches" WHERE "matches"."id" = ? LIMIT ?` |
| gc | ruby/gc.c | 3.4 | 0.5 | 1.97% | `GC.start` |
| sql | app/models/match.rb:311 | 2.43 | 0.7 | 1.97% | `SELECT "institutions".* FROM "institutions" INNER JOIN "antennes" ON "instituti…` |
| sql | app/helpers/experts_helper.rb:11 | 1.6 | 1.0 | 1.86% | `SELECT "users".* FROM "users" INNER JOIN "experts_users" ON "users"."id" = "exp…` |
| sql | app/models/user.rb:326 | 0.36 | 4.2 | 1.74% | `SELECT ? AS one FROM "user_rights" WHERE "user_rights"."user_id" = ? AND "user_…` |
| queue | queue | 1.3 | 1.0 | 1.51% |  |
| sql | app/models/need.rb:465 | 1.5 | 0.8 | 1.39% | `UPDATE "needs" SET "updated_at" = ?, "status" = ? WHERE "needs"."id" = ?` |
| sql | app/views/needs/_match_actions.html.haml:20 | 0.71 | 1.4 | 1.16% | `SELECT "diagnoses".* FROM "diagnoses" INNER JOIN "needs" ON "diagnoses"."id" = …` |
| view | app/views/matches/update.js.haml | 1.0 | 1.0 | 1.16% |  |

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