explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 9bJM

Settings
# exclusive inclusive rows x rows loops node
1. 928.236 6,094.282 ↑ 2.5 8,848 1

Hash Left Join (cost=183.96..147,542.57 rows=21,829 width=643) (actual time=2.178..6,094.282 rows=8,848 loops=1)

  • Hash Cond: (d.publisher_organisation_id = oef.organisation_id)
2. 6.364 5,165.795 ↓ 4.0 7,907 1

Hash Join (cost=123.11..58,897.42 rows=1,961 width=431) (actual time=1.677..5,165.795 rows=7,907 loops=1)

  • Hash Cond: (d.impact_score = ei.impact_score)
3. 6.723 5,159.418 ↓ 4.0 7,907 1

Hash Join (cost=105.45..58,874.55 rows=1,961 width=343) (actual time=1.658..5,159.418 rows=7,907 loops=1)

  • Hash Cond: (d.responsible_org_orgref = resporg.swa_org_ref)
4. 8.039 5,151.869 ↓ 4.0 7,908 1

Hash Join (cost=53.00..58,816.94 rows=1,961 width=321) (actual time=0.827..5,151.869 rows=7,908 loops=1)

  • Hash Cond: (d.publisher_orgref = publisher.swa_org_ref)
5. 5.596 5,143.040 ↓ 4.0 7,908 1

Nested Loop (cost=0.55..58,759.33 rows=1,961 width=299) (actual time=0.031..5,143.040 rows=7,908 loops=1)

6. 0.031 0.031 ↓ 31.0 31 1

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

  • Filter: ((entitygroupid)::text = 'RW'::text)
  • Rows Removed by Filter: 61
7. 5,137.413 5,137.413 ↑ 7.7 255 31

Index Scan using idx_entity_category on entity d (cost=0.55..58,729.22 rows=1,961 width=307) (actual time=0.546..165.723 rows=255 loops=31)

  • Index Cond: ((entity_category)::text = (ecat.nsa_code)::text)
  • Filter: (active AND (tm__entity_id_sw_xref IS NULL) 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: 24953
8. 0.395 0.790 ↑ 1.0 1,309 1

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

  • Buckets: 2048 Batches: 1 Memory Usage: 82kB
9. 0.395 0.395 ↑ 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.395 rows=1,309 loops=1)

10. 0.394 0.826 ↑ 1.0 1,309 1

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

  • Buckets: 2048 Batches: 1 Memory Usage: 82kB
11. 0.432 0.432 ↑ 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.432 rows=1,309 loops=1)

12. 0.005 0.013 ↑ 68.0 5 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
13. 0.008 0.008 ↑ 68.0 5 1

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

14. 0.125 0.251 ↑ 5.2 437 1

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

  • Buckets: 4096 Batches: 1 Memory Usage: 50kB
15. 0.126 0.126 ↑ 5.2 437 1

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