explain.depesz.com

PostgreSQL's explain analyze made readable

Result: E25t

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 0.111 ↑ 1.0 1 1

Limit (cost=24.66..24.66 rows=1 width=349) (actual time=0.111..0.111 rows=1 loops=1)

2. 0.020 0.110 ↑ 1.0 1 1

Sort (cost=24.66..24.66 rows=1 width=349) (actual time=0.110..0.110 rows=1 loops=1)

  • Sort Key: uipriority.prioritisedscore DESC
  • Sort Method: quicksort Memory: 25kB
3. 0.003 0.090 ↑ 1.0 1 1

Nested Loop (cost=8.33..24.65 rows=1 width=349) (actual time=0.074..0.090 rows=1 loops=1)

4. 0.005 0.085 ↑ 1.0 1 1

Nested Loop Left Join (cost=8.18..16.47 rows=1 width=317) (actual time=0.070..0.085 rows=1 loops=1)

  • Join Filter: (pc.categoryid = categories.parentid)
  • Rows Removed by Join Filter: 17
5. 0.002 0.079 ↑ 1.0 1 1

Nested Loop (cost=8.18..15.09 rows=1 width=253) (actual time=0.064..0.079 rows=1 loops=1)

6. 0.034 0.071 ↑ 1.0 1 1

Hash Join (cost=8.18..13.86 rows=1 width=181) (actual time=0.058..0.071 rows=1 loops=1)

  • Hash Cond: (uipriority.insightid = insights.insightid)
7. 0.020 0.020 ↑ 1.0 103 1

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

  • Filter: (userid = 3)
8. 0.005 0.017 ↑ 1.0 1 1

Hash (cost=8.17..8.17 rows=1 width=176) (actual time=0.017..0.017 rows=1 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
9. 0.012 0.012 ↑ 1.0 1 1

Index Scan using insights_categoryid_idx on insights (cost=0.14..8.17 rows=1 width=176) (actual time=0.012..0.012 rows=1 loops=1)

  • Index Cond: (categoryid = 4)
  • Filter: (expirydate >= now())
10. 0.006 0.006 ↑ 1.0 1 1

Seq Scan on categories (cost=0.00..1.21 rows=1 width=80) (actual time=0.005..0.006 rows=1 loops=1)

  • Filter: (categoryid = 4)
  • Rows Removed by Filter: 16
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.002 0.002 ↑ 1.0 1 1

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

  • Index Cond: (sourcetypeid = insights.sourcetypeid)
Planning time : 1.312 ms
Execution time : 0.190 ms