explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 9JID

Settings
# exclusive inclusive rows x rows loops node
1. 0.008 0.056 ↓ 0.0 0 1

Sort (cost=7,014.82..7,015.63 rows=324 width=286) (actual time=0.056..0.056 rows=0 loops=1)

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

Nested Loop (cost=16.97..7,001.31 rows=324 width=286) (actual time=0.048..0.048 rows=0 loops=1)

3. 0.003 0.047 ↓ 0.0 0 1

Hash Join (cost=16.82..6,943.79 rows=324 width=254) (actual time=0.047..0.047 rows=0 loops=1)

  • Hash Cond: (insights.categoryid = c.categoryid)
4. 0.000 0.007 ↓ 0.0 0 1

Nested Loop (cost=13.41..6,934.94 rows=587 width=212) (actual time=0.007..0.007 rows=0 loops=1)

5. 0.001 0.007 ↓ 0.0 0 1

Bitmap Heap Scan on userinsightpriority uipriority (cost=12.98..2,055.45 rows=587 width=40) (actual time=0.007..0.007 rows=0 loops=1)

  • Recheck Cond: (userid = 3)
6. 0.006 0.006 ↓ 0.0 0 1

Bitmap Index Scan on userinsightpriority_userid_idx (cost=0.00..12.83 rows=587 width=0) (actual time=0.006..0.006 rows=0 loops=1)

  • Index Cond: (userid = 3)
7. 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)
  • Filter: (expirydate >= now())
8. 0.002 0.037 ↑ 1.0 16 1

Hash (cost=3.21..3.21 rows=16 width=58) (actual time=0.037..0.037 rows=16 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
9. 0.014 0.035 ↑ 1.0 16 1

Hash Join (cost=1.65..3.21 rows=16 width=58) (actual time=0.027..0.035 rows=16 loops=1)

  • Hash Cond: (c.parentid = c1.categoryid)
10. 0.008 0.008 ↑ 1.0 29 1

Seq Scan on categories c (cost=0.00..1.29 rows=29 width=16) (actual time=0.004..0.008 rows=29 loops=1)

11. 0.007 0.013 ↑ 1.0 29 1

Hash (cost=1.29..1.29 rows=29 width=50) (actual time=0.013..0.013 rows=29 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
12. 0.006 0.006 ↑ 1.0 29 1

Seq Scan on categories c1 (cost=0.00..1.29 rows=29 width=50) (actual time=0.002..0.006 rows=29 loops=1)

13. 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)
Planning time : 0.591 ms