Project

General

Profile

Actions

Bug #20508

closed

Extremely slow /api/v2/hosts, 200hosts/page takes about 40s to display

Added by Daniel Kimsey almost 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

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.


Files

GET --api-v2-hosts-...-.txt GET --api-v2-hosts-...-.txt 920 KB Daniel Kimsey, 08/04/2017 03:49 PM
Actions

Also available in: Atom PDF