Actions
Bug #36944
closedall hosts page slow -> reduce the amout of queries to load the rex status
Difficulty:
Triaged:
No
Description
This line of code is responsible for 6 DB queries for each host: https://github.com/theforeman/foreman_remote_execution/blob/master/app/models/host_status/execution_status.rb#L112 and no preload/eager_loading is used. Means, if you have 100 hosts, it will run 600 DB queries.
This should be improved to improve the performance.
Actions