# Admin::UsersController#invite_to_demo

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

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/admin/user.rb:364 | 9.5 | 1.0 | 40.10% | `Admin::UsersController#invite_to_demo` |
| sql | app/models/user.rb:261 | 0.88 | 4.0 | 14.78% | `BEGIN SELECT "user_rights".* FROM "user_rights" WHERE "user_rights"."user_id" =…` |
| queue | queue | 2.0 | 1.0 | 8.44% |  |
| sql | vendor/bundle/ruby/4.0.0/gems/activesupport-8.1.3/lib/active_support/notifications/fanout.rb:158 | 1.5 | 1.0 | 6.33% | `SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC …` |
| sql | app/models/user.rb:326 | 1.5 | 1.0 | 6.33% | `SELECT ? AS one FROM "user_rights" WHERE "user_rights"."user_id" = ? AND "user_…` |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/rack-attack-6.8.0/lib/rack/attack.rb:104 | 1.0 | 1.0 | 4.22% | `Rack::Attack` |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/warden-1.2.9/lib/warden/manager.rb:30 | 0.5 | 1.0 | 2.11% | `Warden::Manager` |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/railties-8.1.3/lib/rails/rack/logger.rb:20 | 0.5 | 1.0 | 2.11% | `Rails::Rack::Logger` |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.3/lib/action_dispatch/middleware/static.rb:26 | 0.5 | 1.0 | 2.11% | `ActionDispatch::Static` |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.3/lib/action_dispatch/middleware/cookies.rb:706 | 0.5 | 1.0 | 2.11% | `ActionDispatch::Cookies` |
| rack | /app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.3/lib/action_dispatch/middleware/request_id.rb:31 | 0.5 | 1.0 | 2.11% | `ActionDispatch::RequestId` |
| rack | ActionDispatch::Flash | 0.5 | 1.0 | 2.11% |  |

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