Foreman host new UI

This is what I see, it does loads 50 per_page, but loads very slow., it takes 3s

The same for hostgroups request, it loads 462 ??? and it takes 26s

and then I went on searching for how much time does Database take to respond for those 2 requests, its fairly fast less than 500ms.

So its the entire rendering which takes that much time ?