explain.depesz.com

PostgreSQL's explain analyze made readable

Result: HuLM

Settings
# exclusive inclusive rows x rows loops node
1. 967.462 1,610.812 ↑ 2.5 9,787 1

Hash Left Join (cost=199.35..159,738.85 rows=24,827 width=643) (actual time=2.309..1,610.812 rows=9,787 loops=1)

  • Hash Cond: (d.publisher_organisation_id = oef.organisation_id)
2.          

CTE live_orgs

3. 0.032 0.043 ↓ 8.5 93 1

Bitmap Heap Scan on organisation_extended_funcs (cost=4.37..15.04 rows=11 width=4) (actual time=0.017..0.043 rows=93 loops=1)

  • Recheck Cond: (extended_function_id = 14)
  • Heap Blocks: exact=3
4. 0.011 0.011 ↓ 8.5 93 1

Bitmap Index Scan on organisation_extended_funcs_pkey (cost=0.00..4.36 rows=11 width=0) (actual time=0.010..0.011 rows=93 loops=1)

  • Index Cond: (extended_function_id = 14)
5. 6.293 643.111 ↓ 3.7 8,248 1

Hash Left Join (cost=123.46..58,912.21 rows=2,231 width=431) (actual time=1.790..643.111 rows=8,248 loops=1)

  • Hash Cond: (d.publisher_organisation_id = live_orgs.organisation_id)
6. 6.787 636.699 ↓ 3.7 8,248 1

Hash Join (cost=123.11..58,902.28 rows=2,231 width=431) (actual time=1.667..636.699 rows=8,248 loops=1)

  • Hash Cond: (d.impact_score = ei.impact_score)
7. 6.922 629.901 ↓ 3.7 8,248 1

Hash Join (cost=105.45..58,878.69 rows=2,231 width=343) (actual time=1.650..629.901 rows=8,248 loops=1)

  • Hash Cond: (d.responsible_org_orgref = resporg.swa_org_ref)
8. 8.364 622.157 ↓ 3.7 8,249 1

Hash Join (cost=53.00..58,820.36 rows=2,231 width=321) (actual time=0.823..622.157 rows=8,249 loops=1)

  • Hash Cond: (d.publisher_orgref = publisher.swa_org_ref)
9. 5.591 613.006 ↓ 3.7 8,250 1

Nested Loop (cost=0.55..58,762.03 rows=2,231 width=299) (actual time=0.029..613.006 rows=8,250 loops=1)

10. 0.032 0.032 ↓ 31.0 31 1

Seq Scan on entity_category ecat (cost=0.00..10.50 rows=1 width=118) (actual time=0.004..0.032 rows=31 loops=1)

  • Filter: ((entitygroupid)::text = 'RW'::text)
  • Rows Removed by Filter: 61
11. 607.383 607.383 ↑ 8.4 266 31

Index Scan using idx_entity_category on entity d (cost=0.55..58,729.22 rows=2,231 width=307) (actual time=0.418..19.593 rows=266 loops=31)

  • Index Cond: ((entity_category)::text = (ecat.nsa_code)::text)
  • Filter: (active AND (entity_type > 1) AND (published = 1) AND (end_date >= LOCALTIMESTAMP) AND (LOCALTIMESTAMP > publish_date) AND (end_date >= (CURRENT_DATE)::timestamp without time zone) AND (start_date <= ((CURRENT_DATE + '1 day'::interval) - '00:00:01'::interval)))
  • Rows Removed by Filter: 24946
12. 0.393 0.787 ↑ 1.0 1,309 1

Hash (cost=36.09..36.09 rows=1,309 width=26) (actual time=0.786..0.787 rows=1,309 loops=1)

  • Buckets: 2048 Batches: 1 Memory Usage: 82kB
13. 0.394 0.394 ↑ 1.0 1,309 1

Seq Scan on orgref publisher (cost=0.00..36.09 rows=1,309 width=26) (actual time=0.002..0.394 rows=1,309 loops=1)

14. 0.393 0.822 ↑ 1.0 1,309 1

Hash (cost=36.09..36.09 rows=1,309 width=26) (actual time=0.822..0.822 rows=1,309 loops=1)

  • Buckets: 2048 Batches: 1 Memory Usage: 82kB
15. 0.429 0.429 ↑ 1.0 1,309 1

Seq Scan on orgref resporg (cost=0.00..36.09 rows=1,309 width=26) (actual time=0.003..0.429 rows=1,309 loops=1)

16. 0.005 0.011 ↑ 68.0 5 1

Hash (cost=13.40..13.40 rows=340 width=92) (actual time=0.011..0.011 rows=5 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
17. 0.006 0.006 ↑ 68.0 5 1

Seq Scan on eton_impact ei (cost=0.00..13.40 rows=340 width=92) (actual time=0.004..0.006 rows=5 loops=1)

18. 0.027 0.119 ↓ 8.5 93 1

Hash (cost=0.22..0.22 rows=11 width=4) (actual time=0.119..0.119 rows=93 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 12kB
19. 0.092 0.092 ↓ 8.5 93 1

CTE Scan on live_orgs (cost=0.00..0.22 rows=11 width=4) (actual time=0.019..0.092 rows=93 loops=1)

20. 0.126 0.239 ↑ 5.2 437 1

Hash (cost=32.60..32.60 rows=2,260 width=8) (actual time=0.238..0.239 rows=437 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 50kB
21. 0.113 0.113 ↑ 5.2 437 1

Seq Scan on organisation_extended_funcs oef (cost=0.00..32.60 rows=2,260 width=8) (actual time=0.003..0.113 rows=437 loops=1)