explain.depesz.com

PostgreSQL's explain analyze made readable

Result: MUaH

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 0.208 ↑ 2.5 4 1

Limit (cost=25.36..25.39 rows=10 width=349) (actual time=0.207..0.208 rows=4 loops=1)

2. 0.028 0.208 ↑ 2.8 4 1

Sort (cost=25.36..25.39 rows=11 width=349) (actual time=0.207..0.208 rows=4 loops=1)

  • Sort Key: uipriority.prioritisedscore DESC
  • Sort Method: quicksort Memory: 26kB
3. 0.003 0.180 ↑ 2.8 4 1

Nested Loop (cost=13.95..25.17 rows=11 width=349) (actual time=0.149..0.180 rows=4 loops=1)

4. 0.028 0.173 ↑ 2.8 4 1

Hash Join (cost=13.80..19.58 rows=11 width=317) (actual time=0.145..0.173 rows=4 loops=1)

  • Hash Cond: (uipriority.insightid = insights.insightid)
5. 0.027 0.027 ↑ 1.0 103 1

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

  • Filter: (userid = 3)
6. 0.006 0.118 ↑ 4.2 4 1

Hash (cost=13.58..13.58 rows=17 width=312) (actual time=0.118..0.118 rows=4 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
7. 0.020 0.112 ↑ 4.2 4 1

Hash Join (cost=2.56..13.58 rows=17 width=312) (actual time=0.050..0.112 rows=4 loops=1)

  • Hash Cond: (insights.categoryid = categories.categoryid)
8. 0.061 0.061 ↓ 1.0 147 1

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

  • Filter: (expirydate >= now())
  • Rows Removed by Filter: 7
9. 0.005 0.031 ↓ 1.5 3 1

Hash (cost=2.53..2.53 rows=2 width=144) (actual time=0.031..0.031 rows=3 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
10. 0.012 0.026 ↓ 1.5 3 1

Hash Right Join (cost=1.28..2.53 rows=2 width=144) (actual time=0.022..0.026 rows=3 loops=1)

  • Hash Cond: (pc.categoryid = categories.parentid)
11. 0.001 0.001 ↑ 1.0 17 1

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

12. 0.005 0.013 ↓ 1.5 3 1

Hash (cost=1.25..1.25 rows=2 width=80) (actual time=0.013..0.013 rows=3 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
13. 0.008 0.008 ↓ 1.5 3 1

Seq Scan on categories (cost=0.00..1.25 rows=2 width=80) (actual time=0.006..0.008 rows=3 loops=1)

  • Filter: ((parentid = 4) OR (categoryid = 4))
  • Rows Removed by Filter: 14
14. 0.004 0.004 ↑ 1.0 1 4

Index Scan using pk_sourcetypes_sourcetypeid on sourcetypes st (cost=0.15..0.50 rows=1 width=40) (actual time=0.001..0.001 rows=1 loops=4)

  • Index Cond: (sourcetypeid = insights.sourcetypeid)
Planning time : 1.349 ms
Execution time : 0.291 ms