explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Tkr5

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

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

2. 0.067 0.272 ↑ 9.7 10 1

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

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

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

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

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

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

Hash Join (cost=6.57..18.40 rows=97 width=181) (actual time=0.052..0.127 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.008..0.058 rows=147 loops=1)

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

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

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

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

  • Filter: (userid = 3)
9. 0.000 0.026 ↑ 4.2 4 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
10. 0.010 0.026 ↑ 4.2 4 1

Hash Join (cost=1.38..2.79 rows=17 width=80) (actual time=0.022..0.026 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.008 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.002 0.002 ↑ 1.0 17 1

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

14. 0.001 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.002 0.002 ↑ 260.0 2 1

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