Project

General

Profile

Actions

Bug #36944

closed

all hosts page slow -> reduce the amout of queries to load the rex status

Added by Bernhard Suttner over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Found in Releases:

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

Also available in: Atom PDF