explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 2U6T

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

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

2. 0.013 0.149 ↑ 3.0 4 1

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

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

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

4. 0.019 0.128 ↑ 3.0 4 1

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

  • Hash Cond: (uipriority.insightid = insights.insightid)
5. 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.007..0.024 rows=103 loops=1)

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

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
7. 0.017 0.082 ↑ 4.5 4 1

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

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

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

9. 0.002 0.026 ↓ 1.5 3 1

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

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

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

  • Hash Cond: (pc.categoryid = categories.parentid)
  • Join Filter: ((categories.parentid = 4) OR (categories.categoryid = 4))
11. 0.004 0.004 ↑ 1.0 17 1

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

12. 0.004 0.010 ↓ 1.5 3 1

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

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

Seq Scan on categories (cost=0.00..1.25 rows=2 width=80) (actual time=0.004..0.006 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.672 ms
Execution time : 0.208 ms