# Conseiller::Diagnoses::StepsController#update_needs

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

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/conseiller/diagnoses/steps_controller.rb:30 | 0.98 | 20.25 | 31.80% | `BEGIN SELECT "needs".* FROM "needs" WHERE "needs"."diagnosis_id" = ? AND "needs…` |
| code | app/controllers/conseiller/diagnoses/steps_controller.rb:27 | 19.0 | 1.0 | 30.59% | `Conseiller::Diagnoses::StepsController#update_needs` |
| queue | queue | 6.75 | 1.0 | 10.87% |  |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.6/lib/rack/method_override.rb:19 | 3.0 | 1.0 | 4.83% | `Rack::MethodOverride` |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/rack-attack-6.8.0/lib/rack/attack.rb:104 | 2.75 | 1.0 | 4.43% | `Rack::Attack` |
| sql | vendor/bundle/ruby/4.0.0/gems/activesupport-8.1.3/lib/active_support/notifications/fanout.rb:158 | 1.0 | 1.0 | 1.61% | `SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC …` |
| gc | ruby/gc.c | 4.0 | 0.25 | 1.61% | `GC.start` |
| sql | app/models/concerns/mandatory_answers.rb:30 | 0.38 | 2.0 | 1.21% | `SELECT "subjects".* FROM "subjects" WHERE "subjects"."id" = ? LIMIT ? SELECT "s…` |

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