explain.depesz.com

PostgreSQL's explain analyze made readable

Result: tzzK

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

Limit (cost=24.97..25.00 rows=10 width=349) (actual time=0.147..0.149 rows=4 loops=1)

2. 0.015 0.147 ↑ 3.0 4 1

Sort (cost=24.97..25.00 rows=12 width=349) (actual time=0.146..0.147 rows=4 loops=1)

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

Nested Loop (cost=13.24..24.76 rows=12 width=349) (actual time=0.101..0.132 rows=4 loops=1)

4. 0.016 0.122 ↑ 3.0 4 1

Hash Join (cost=13.09..18.88 rows=12 width=317) (actual time=0.096..0.122 rows=4 loops=1)

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

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

  • Filter: (userid = 3)
6. 0.003 0.081 ↑ 4.5 4 1

Hash (cost=12.87..12.87 rows=18 width=312) (actual time=0.081..0.081 rows=4 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
7. 0.018 0.078 ↑ 4.5 4 1

Hash Join (cost=2.57..12.87 rows=18 width=312) (actual time=0.033..0.078 rows=4 loops=1)

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

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

9. 0.001 0.024 ↓ 1.5 3 1

Hash (cost=2.54..2.54 rows=2 width=144) (actual time=0.024..0.024 rows=3 loops=1)

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

Hash Right Join (cost=1.28..2.54 rows=2 width=144) (actual time=0.016..0.023 rows=3 loops=1)

  • Hash Cond: (pc.categoryid = categories.parentid)
  • Join Filter: ((categories.parentid = 4) OR (categories.categoryid = 4))
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.002 0.009 ↓ 1.5 3 1

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

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

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

  • Filter: ((parentid = 4) OR (categoryid = 4))
  • Rows Removed by Filter: 14
14. 0.008 0.008 ↑ 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.002 rows=1 loops=4)

  • Index Cond: (sourcetypeid = insights.sourcetypeid)
Planning time : 0.700 ms
Execution time : 0.216 ms