Issue dashboard is slow or unusable due to slow SQL

When I hit https://gitlab.com/dashboard/issues without any filter, I'm always getting a 500 (presumably due to SQL timeouts).

Data from Grafana: Screenshot_from_2018-03-20_23-17-45

Screenshot_from_2018-03-20_23-17-15

Assignee Loading
Time tracking Loading