Foreman dashboard slow in 1.5 for non admin users
fixes #5841 - use inner query when retrieving reports for subset of authorised hosts
#5 Updated by Dominic Cleal over 5 years ago
Ohad Levy wrote:
Dominic, did you investigate on this? Any reason why the ID's are added instead of INNER query?
Not in depth, but I saw here that it was done deliberately: https://github.com/theforeman/foreman/blob/develop/app/models/report.rb#L36-L37
It might be we can use the authorized scope directly, but I haven't tested.