Actions
Refactor #8790
closedN+1 on user list page
Description
I get the following on the users list page:
N+1 Query detected User => [:cached_usergroups] Add to your finder: :include => [:cached_usergroups] N+1 Query method call stack /home/tbrisker/foreman/app/models/user.rb:138:in `admin?' /home/tbrisker/foreman/app/views/users/index.html.erb:23:in `block in _app_views_users_index_html_erb___2625566761564459765_130883920' /home/tbrisker/foreman/app/views/users/index.html.erb:17:in `_app_views_users_index_html_erb___2625566761564459765_130883920' /home/tbrisker/foreman/app/models/concerns/foreman/thread_session.rb:33:in `clear_thread' /home/tbrisker/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call'
Actions