explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Uyuj

Settings
# exclusive inclusive rows x rows loops node
1. 0.002 0.165 ↑ 2.5 4 1

Limit (cost=24.96..24.99 rows=10 width=349) (actual time=0.162..0.165 rows=4 loops=1)

2. 0.019 0.163 ↑ 3.0 4 1

Sort (cost=24.96..24.99 rows=12 width=349) (actual time=0.161..0.163 rows=4 loops=1)

  • Sort Key: uipriority.prioritisedscore DESC
  • Sort Method: quicksort Memory: 26kB
3. 0.005 0.144 ↑ 3.0 4 1

Nested Loop (cost=13.23..24.75 rows=12 width=349) (actual time=0.114..0.144 rows=4 loops=1)

4. 0.013 0.135 ↑ 3.0 4 1

Hash Join (cost=13.08..18.88 rows=12 width=317) (actual time=0.108..0.135 rows=4 loops=1)

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

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

  • Filter: (userid = 3)
6. 0.004 0.092 ↑ 4.5 4 1

Hash (cost=12.86..12.86 rows=18 width=312) (actual time=0.092..0.092 rows=4 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
7. 0.013 0.088 ↑ 4.5 4 1

Hash Join (cost=2.56..12.86 rows=18 width=312) (actual time=0.042..0.088 rows=4 loops=1)

  • Hash Cond: (insights.categoryid = categories.categoryid)
8. 0.043 0.043 ↑ 1.0 154 1

Seq Scan on insights (cost=0.00..9.54 rows=154 width=176) (actual time=0.003..0.043 rows=154 loops=1)

9. 0.005 0.032 ↓ 1.5 3 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
10. 0.010 0.027 ↓ 1.5 3 1

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

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

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

12. 0.005 0.015 ↓ 1.5 3 1

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

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

Seq Scan on categories (cost=0.00..1.25 rows=2 width=80) (actual time=0.007..0.010 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.48 rows=1 width=40) (actual time=0.001..0.001 rows=1 loops=4)

  • Index Cond: (sourcetypeid = insights.sourcetypeid)
Planning time : 0.728 ms
Execution time : 0.234 ms