# Slow SQL query causes homepage to load in 2-4 sec

**URL:** <https://meta.discourse.org/t/slow-sql-query-causes-homepage-to-load-in-2-4-sec/74261>\
**Category:** Product Support\
**Created:** [17. November 2017 um 13:24 UTC](https://meta.discourse.org/t/slow-sql-query-causes-homepage-to-load-in-2-4-sec/74261 "2017-11-17T13:24:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [31. Januar 2018 um 15:34 UTC](https://meta.discourse.org/t/slow-sql-query-causes-homepage-to-load-in-2-4-sec/74261/5 "2018-01-31T15:34:36Z")

</div>

Take the slow query from the MiniProfiler (thing with numbers at top left) and run it with psql, as `EXPLAIN ANALYZE $query`, then paste the results here.

Also, I saw a **very** active Discourse get better performance running in spinning disks, so I guess something is very wrong.

---

_[View the full topic](https://meta.discourse.org/t/slow-sql-query-causes-homepage-to-load-in-2-4-sec/74261)._
