I noticed this when l try to pull up the content hosts view or when I was using the foreman plugin for ansible.
In short, the @/api/v2/hosts@ call takes a very long time. With jsherril's help I've extracted some debug logs (attached). It looks like most of the SQL time is spent in lookups to rpms and errata with some more in reports.
Created from redmine issue http://projects.theforeman.org/issues/20508
Upstream bug assigned to firstname.lastname@example.org
suggesting for 6.3, as it should help performance on the hosts api and pages.
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20508 has been resolved.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> > For information on the advisory, and where to find the updated files, follow the link below.
> > If the solution does not work for you, open a new bug report.
> > https://access.redhat.com/errata/RHSA-2018:0336