explain.depesz.com

PostgreSQL's explain analyze made readable

Result: HRH9

Settings
# exclusive inclusive rows x rows loops node
1. 0.002 0.276 ↑ 1.0 10 1

Limit (cost=47.86..47.89 rows=10 width=277) (actual time=0.274..0.276 rows=10 loops=1)

2. 0.074 0.274 ↑ 9.7 10 1

Sort (cost=47.86..48.10 rows=97 width=277) (actual time=0.273..0.274 rows=10 loops=1)

  • Sort Key: uipriority.prioritisedscore DESC
  • Sort Method: top-N heapsort Memory: 28kB
3. 0.029 0.200 ↑ 1.0 94 1

Hash Join (cost=31.27..45.77 rows=97 width=277) (actual time=0.089..0.200 rows=94 loops=1)

  • Hash Cond: (insights.sourcetypeid = st.sourcetypeid)
4. 0.027 0.168 ↑ 1.0 94 1

Hash Join (cost=9.57..22.73 rows=97 width=245) (actual time=0.076..0.168 rows=94 loops=1)

  • Hash Cond: (insights.categoryid = c.categoryid)
5. 0.021 0.116 ↑ 1.0 97 1

Hash Join (cost=6.57..18.40 rows=97 width=181) (actual time=0.047..0.116 rows=97 loops=1)

  • Hash Cond: (insights.insightid = uipriority.insightid)
6. 0.058 0.058 ↓ 1.0 147 1

Seq Scan on insights (cost=0.00..10.31 rows=145 width=176) (actual time=0.006..0.058 rows=147 loops=1)

  • Filter: (expirydate >= now())
  • Rows Removed by Filter: 7
7. 0.013 0.037 ↑ 1.0 103 1

Hash (cost=5.29..5.29 rows=103 width=13) (actual time=0.037..0.037 rows=103 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 13kB
8. 0.024 0.024 ↑ 1.0 103 1

Seq Scan on userinsightpriority uipriority (cost=0.00..5.29 rows=103 width=13) (actual time=0.002..0.024 rows=103 loops=1)

  • Filter: (userid = 3)
9. 0.002 0.025 ↑ 4.2 4 1

Hash (cost=2.79..2.79 rows=17 width=80) (actual time=0.025..0.025 rows=4 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
10. 0.007 0.023 ↑ 4.2 4 1

Hash Join (cost=1.38..2.79 rows=17 width=80) (actual time=0.020..0.023 rows=4 loops=1)

  • Hash Cond: (c.parentid = c1.categoryid)
11. 0.006 0.006 ↑ 1.0 17 1

Seq Scan on categories c (cost=0.00..1.17 rows=17 width=16) (actual time=0.005..0.006 rows=17 loops=1)

12. 0.005 0.010 ↑ 1.0 17 1

Hash (cost=1.17..1.17 rows=17 width=72) (actual time=0.010..0.010 rows=17 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
13. 0.005 0.005 ↑ 1.0 17 1

Seq Scan on categories c1 (cost=0.00..1.17 rows=17 width=72) (actual time=0.002..0.005 rows=17 loops=1)

14. 0.000 0.003 ↑ 260.0 2 1

Hash (cost=15.20..15.20 rows=520 width=40) (actual time=0.003..0.003 rows=2 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
15. 0.003 0.003 ↑ 260.0 2 1

Seq Scan on sourcetypes st (cost=0.00..15.20 rows=520 width=40) (actual time=0.002..0.003 rows=2 loops=1)