explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Kn7c

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

Limit (cost=17,805.51..71,712.68 rows=1 width=0) (actual time=104.456..104.456 rows=1 loops=1)

2. 0.011 104.455 ↑ 1.0 1 1

Nested Loop Left Join (cost=17,805.51..71,712.68 rows=1 width=0) (actual time=104.455..104.455 rows=1 loops=1)

  • Join Filter: (io.premise_type = (loc.state_code)::text)
  • Rows Removed by Join Filter: 89
3. 0.002 104.183 ↑ 1.0 1 1

Nested Loop (cost=17,805.51..71,649.33 rows=1 width=3) (actual time=104.183..104.183 rows=1 loops=1)

4. 0.004 104.171 ↑ 1.0 1 1

Nested Loop (cost=17,805.09..71,648.64 rows=1 width=11) (actual time=104.171..104.171 rows=1 loops=1)

5. 1.389 104.159 ↑ 1.0 1 1

Hash Join (cost=17,804.67..71,647.88 rows=1 width=7) (actual time=104.159..104.159 rows=1 loops=1)

  • Hash Cond: (i.incident_link = io.incident_link)
6. 77.794 77.794 ↑ 8.9 13,097 1

Seq Scan on incident_ni i (cost=0.00..53,404.05 rows=117,105 width=8) (actual time=39.976..77.794 rows=13,097 loops=1)

7. 0.004 24.976 ↑ 1.0 1 1

Hash (cost=17,804.66..17,804.66 rows=1 width=7) (actual time=24.976..24.976 rows=1 loops=1)

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

Seq Scan on incident_offense_ni io (cost=0.00..17,804.66 rows=1 width=7) (actual time=24.972..24.972 rows=1 loops=1)

  • Filter: (z_z_ucr_code_desc_offenses_2 IS NOT NULL)
  • Rows Removed by Filter: 139365
9. 0.008 0.008 ↑ 1.0 1 1

Index Scan using rms_case_idx_link on rms_case c (cost=0.42..0.76 rows=1 width=12) (actual time=0.008..0.008 rows=1 loops=1)

  • Index Cond: (rms_case_link = i.rms_case_link)
10. 0.010 0.010 ↑ 1.0 1 1

Index Only Scan using stg_combined_cases_wtrun_convertedid_idx on stg_combined_cases pt_c (cost=0.42..0.67 rows=1 width=8) (actual time=0.010..0.010 rows=1 loops=1)

  • Index Cond: ((wtrun = 280) AND (convertedid = c.rms_case_zid))
  • Heap Fetches: 1
11. 0.261 0.261 ↑ 1.0 89 1

Seq Scan on state_reporting_element_codes loc (cost=0.00..62.24 rows=89 width=8) (actual time=0.047..0.261 rows=89 loops=1)

  • Filter: ((element_tag)::text = 'location_types'::text)
  • Rows Removed by Filter: 1290
Planning time : 0.748 ms
Execution time : 104.662 ms