Bug #18058
opentrend new page slow to load
Description
When having many fact names (I have about 15k due to ansible and puppet facts ) it takes a while to load the page. additionally, the html in response is fairly large (more than 1MB), and overall, the page load is fairly slow.
We might consider using an AJAX call to load the data, or use auto complete instead of a dropdown.
Updated by Tomer Brisker about 6 years ago
- Has duplicate Bug #25352: Create trend form loads extremely slow with a lot of facts added
Updated by Lukas Zapletal about 6 years ago
Why not to cache it similarly as I proposed for dashboard?
Updated by Tomer Brisker over 4 years ago
- Project changed from Foreman to Statistics
- Category deleted (
Trends)
Updated by Adam Winberg about 4 years ago
- Found in Releases foreman_statistics-1.0.0 added
Not sure if this is after the move to a separate plugin, but I am hitting this now. In my case the page is loading for several minutes, the server load is not very high but my browser process on my pc is eating up every bit of cpu it can. So it seems javascript related in my case, but there are no errors in the console.
I don't actually know if the 'Add Trend Counter' even shows up eventually because I have to kill my browser since it's freezing my system. I only get to the js spinner, spinning away for several minutes.
I do have a lot of fact names:
foreman=> SELECT count(*) FROM "fact_names" WHERE (fact_names.name <> '_timestamp'); count -------- 316111 (1 row)