explain.depesz.com

PostgreSQL's explain analyze made readable

Result: NhfM

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 0.017 ↓ 0.0 0 1

Limit (cost=6,962.72..6,962.74 rows=10 width=336) (actual time=0.017..0.017 rows=0 loops=1)

2. 0.006 0.017 ↓ 0.0 0 1

Sort (cost=6,962.72..6,962.82 rows=40 width=336) (actual time=0.017..0.017 rows=0 loops=1)

  • Sort Key: uipriority.prioritisedscore DESC
  • Sort Method: quicksort Memory: 25kB
3. 0.001 0.011 ↓ 0.0 0 1

Nested Loop (cost=13.56..6,961.85 rows=40 width=336) (actual time=0.011..0.011 rows=0 loops=1)

4. 0.000 0.010 ↓ 0.0 0 1

Nested Loop (cost=13.41..6,954.75 rows=40 width=304) (actual time=0.010..0.010 rows=0 loops=1)

  • Join Filter: (insights.categoryid = categories.categoryid)
5. 0.000 0.010 ↓ 0.0 0 1

Nested Loop Left Join (cost=0.00..3.67 rows=2 width=100) (actual time=0.010..0.010 rows=0 loops=1)

  • Join Filter: (pc.categoryid = categories.parentid)
6. 0.010 0.010 ↓ 0.0 0 1

Seq Scan on categories (cost=0.00..1.44 rows=2 width=58) (actual time=0.010..0.010 rows=0 loops=1)

  • Filter: ((parentid = 4) OR (categoryid = 4))
  • Rows Removed by Filter: 29
7. 0.000 0.000 ↓ 0.0 0

Materialize (cost=0.00..1.44 rows=29 width=50) (never executed)

8. 0.000 0.000 ↓ 0.0 0

Seq Scan on categories pc (cost=0.00..1.29 rows=29 width=50) (never executed)

9. 0.000 0.000 ↓ 0.0 0

Materialize (cost=13.41..6,934.94 rows=587 width=212) (never executed)

10. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=13.41..6,932.01 rows=587 width=212) (never executed)

11. 0.000 0.000 ↓ 0.0 0

Bitmap Heap Scan on userinsightpriority uipriority (cost=12.98..2,055.45 rows=587 width=40) (never executed)

  • Recheck Cond: (userid = 3)
12. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on userinsightpriority_userid_idx (cost=0.00..12.83 rows=587 width=0) (never executed)

  • Index Cond: (userid = 3)
13. 0.000 0.000 ↓ 0.0 0

Index Scan using pk_insights_insightid on insights (cost=0.43..8.30 rows=1 width=180) (never executed)

  • Index Cond: (insightid = uipriority.insightid)
14. 0.000 0.000 ↓ 0.0 0

Index Scan using pk_sourcetypes_sourcetypeid on sourcetypes st (cost=0.15..0.17 rows=1 width=40) (never executed)

  • Index Cond: (sourcetypeid = insights.sourcetypeid)