# Conseiller::Diagnoses::StepsController#update_needs

- **Period:** 24 Jun 07:18 UTC – 24 Jun 08:17 UTC
- **Throughput**: 0.1 / min
- **Average:** 65.1 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/conseiller/diagnoses/steps_controller.rb:30 | 0.97 | 20.5 | 30.48% | `BEGIN SELECT "needs".* FROM "needs" WHERE "needs"."diagnosis_id" = ? AND "needs…` |
| code | app/controllers/conseiller/diagnoses/steps_controller.rb:27 | 19.0 | 1.0 | 29.20% | `Conseiller::Diagnoses::StepsController#update_needs` |
| queue | queue | 8.33 | 1.0 | 12.81% |  |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.6/lib/rack/method_override.rb:19 | 2.83 | 1.0 | 4.35% | `Rack::MethodOverride` |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/rack-attack-6.8.0/lib/rack/attack.rb:104 | 2.5 | 1.0 | 3.84% | `Rack::Attack` |
| gc | ruby/gc.c | 3.67 | 0.5 | 2.82% | `GC.start` |
| sql | app/models/concerns/mandatory_answers.rb:30 | 0.5 | 2.0 | 1.54% | `SELECT "subjects".* FROM "subjects" WHERE "subjects"."id" = ? LIMIT ? SELECT "s…` |
| sql | vendor/bundle/ruby/4.0.0/gems/activesupport-8.1.3/lib/active_support/notifications/fanout.rb:158 | 0.67 | 1.0 | 1.02% | `SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC …` |
| sql | app/models/user.rb:326 | 0.67 | 1.0 | 1.02% | `SELECT ? AS one FROM "user_rights" WHERE "user_rights"."user_id" = ? AND "user_…` |

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