# Conseiller::Diagnoses::StepsController#add_match

- **Period:** 24 Jun 08:08 UTC – 24 Jun 08:22 UTC
- **Throughput**: 0.13 / min
- **Average:** 336.3 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| view | app/views/conseiller/diagnoses/steps/matches.html.haml | 142.5 | 1.0 | 42.37% |  |
| sql | app/models/expert.rb:256 | 58.0 | 1.0 | 17.25% | `SELECT "experts"."id" FROM "experts" LEFT OUTER JOIN "antennes" ON "antennes"."…` |
| gc | ruby/gc.c | 33.67 | 1.5 | 15.02% | `GC.start` |
| code | app/controllers/conseiller/diagnoses/steps_controller.rb:67 | 8.5 | 1.0 | 2.53% | `Conseiller::Diagnoses::StepsController#add_match` |
| sql | app/controllers/conseiller/diagnoses/steps_controller.rb:71 | 1.06 | 8.0 | 2.53% | `BEGIN SELECT ? AS one FROM "matches" WHERE "matches"."expert_id" = ? AND "match…` |
| sql | app/models/expert_subject.rb:99 | 0.89 | 9.0 | 2.38% | `SELECT "match_filters".* FROM "match_filters" INNER JOIN "experts" ON "match_fi…` |
| sql | app/services/diagnosis_creation/find_relevant_expert_subjects.rb:36 | 7.5 | 1.0 | 2.23% | `SELECT "experts_subjects".* FROM "experts_subjects" INNER JOIN "experts" ON "ex…` |
| view | app/views/conseiller/diagnoses/steps/_expert_content.html.haml | 3.33 | 1.5 | 1.49% |  |
| sql | app/services/diagnosis_creation/find_relevant_expert_subjects.rb:76 | 0.64 | 5.5 | 1.04% | `SELECT ? AS one FROM "subjects" INNER JOIN "match_filters_subjects" ON "subject…` |
| sql | app/models/expert.rb:247 | 3.5 | 1.0 | 1.04% | `SELECT "experts"."id" FROM "experts" INNER JOIN "territorial_zones" ON "territo…` |
| view | app/views/conseiller/diagnoses/steps/_expert_subject_checkboxes.html.haml | 3.5 | 1.0 | 1.04% |  |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/135976/requests/Conseiller::Diagnoses::StepsController%23add_match?range=15m)