# Conseiller::Diagnoses::StepsController#update_matches

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

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/conseiller/diagnoses/steps_controller.rb:49 | 34.0 | 1.0 | 43.22% | `Conseiller::Diagnoses::StepsController#update_matches` |
| sql | app/controllers/conseiller/diagnoses/steps_controller.rb:56 | 1.74 | 6.13 | 13.59% | `BEGIN SELECT "needs".* FROM "needs" WHERE "needs"."diagnosis_id" = ? AND "needs…` |
| sql | app/controllers/conseiller/diagnoses/steps_controller.rb:58 | 1.58 | 4.0 | 8.02% | `SELECT "landings".* FROM "landings" WHERE "landings"."id" = ? LIMIT ? SELECT "l…` |
| sql | app/models/expert.rb:316 | 2.48 | 1.31 | 4.13% | `SELECT COUNT(*) FROM (SELECT ? AS one FROM "matches" WHERE "matches"."expert_id…` |
| gc | ruby/gc.c | 8.67 | 0.38 | 4.13% | `GC.start` |
| sql | app/models/concerns/mandatory_answers.rb:30 | 0.69 | 4.19 | 3.65% | `SELECT "subjects".* FROM "subjects" WHERE "subjects"."id" = ? LIMIT ? SELECT "s…` |
| sql | app/models/diagnosis.rb:159 | 1.56 | 1.0 | 1.99% | `UPDATE "matches" "__active_record_update_alias" SET "sent_at" = ? FROM "matches…` |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/rack-attack-6.8.0/lib/rack/attack.rb:104 | 1.5 | 1.0 | 1.91% | `Rack::Attack` |
| sql | app/models/need.rb:465 | 1.31 | 1.0 | 1.67% | `UPDATE "needs" SET "updated_at" = ?, "status" = ? WHERE "needs"."id" = ?` |
| sql | app/models/diagnosis.rb:160 | 1.19 | 1.0 | 1.51% | `SELECT "experts".* FROM "experts" INNER JOIN "matches" ON "experts"."id" = "mat…` |
| sql | app/models/diagnosis.rb:134 | 0.94 | 1.0 | 1.19% | `SELECT "diagnoses".* FROM "diagnoses" INNER JOIN "solicitations" ON "solicitati…` |
| sql | vendor/bundle/ruby/4.0.0/gems/activesupport-8.1.3/lib/active_support/notifications/fanout.rb:158 | 0.88 | 1.0 | 1.11% | `SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC …` |

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