explain.depesz.com

PostgreSQL's explain analyze made readable

Result: rJzp

Settings
# exclusive inclusive rows x rows loops node
1. 0.005 1,146.942 ↑ 1.0 25 1

Limit (cost=3.84..87,257.50 rows=25 width=16) (actual time=83.533..1,146.942 rows=25 loops=1)

2. 0.011 1,146.937 ↑ 24.2 25 1

Nested Loop (cost=3.84..2,115,032.47 rows=606 width=16) (actual time=83.533..1,146.937 rows=25 loops=1)

3. 0.039 1,146.901 ↑ 24.2 25 1

Nested Loop (cost=3.84..2,115,023.04 rows=606 width=24) (actual time=83.522..1,146.901 rows=25 loops=1)

4. 0.487 1,146.412 ↑ 28.0 25 1

Nested Loop (cost=3.42..2,114,553.30 rows=700 width=16) (actual time=83.495..1,146.412 rows=25 loops=1)

  • Join Filter: (pdt.id = p.definition_id)
  • Rows Removed by Join Filter: 7096
5. 0.019 1,145.525 ↑ 28.0 25 1

Nested Loop Left Join (cost=3.42..2,111,479.65 rows=700 width=24) (actual time=83.412..1,145.525 rows=25 loops=1)

6. 250.421 1,145.006 ↑ 28.0 25 1

Nested Loop Left Join (cost=2.99..2,111,046.41 rows=700 width=32) (actual time=83.392..1,145.006 rows=25 loops=1)

  • Filter: (f_unaccent(upper(concat(ad.street_name_french, ' ', ad.street_number_from, NULLIF((' - '::text || (ad.street_number_to)::text), ' - '::text), NULLIF((' / '::text || (ad.box_number)::text), ' / '::text)))) ~~ '%ROUGE%'::text)
  • Rows Removed by Filter: 54081
7. 16.172 732.267 ↑ 8.1 54,106 1

Nested Loop Left Join (cost=2.56..1,400,147.40 rows=437,806 width=40) (actual time=0.071..732.267 rows=54,106 loops=1)

8. 30.804 337.353 ↑ 8.1 54,106 1

Nested Loop (cost=1.28..621,286.93 rows=437,754 width=24) (actual time=0.049..337.353 rows=54,106 loops=1)

9. 35.194 198.337 ↑ 8.1 54,106 1

Nested Loop (cost=0.85..360,335.25 rows=437,754 width=24) (actual time=0.040..198.337 rows=54,106 loops=1)

10. 54.931 54.931 ↑ 8.1 54,106 1

Index Scan using case_reception_date_idx on case_t c (cost=0.42..124,947.57 rows=437,754 width=48) (actual time=0.033..54.931 rows=54,106 loops=1)

  • Filter: ((NOT deleted) AND (NOT a_new_version_exists) AND ((case_type)::text = 'URBANISM'::text))
  • Rows Removed by Filter: 4960
11. 108.212 108.212 ↑ 1.0 1 54,106

Index Scan using pk_configuration_t on configuration_t config (cost=0.42..0.53 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=54,106)

  • Index Cond: (id = c.configuration_id)
12. 108.212 108.212 ↑ 1.0 1 54,106

Index Scan using pk_phase_t on phase_t p (cost=0.43..0.59 rows=1 width=24) (actual time=0.002..0.002 rows=1 loops=54,106)

  • Index Cond: (id = config.current_phase_id)
13. 0.000 378.742 ↑ 1.0 1 54,106

Nested Loop Left Join (cost=1.28..1.77 rows=1 width=24) (actual time=0.006..0.007 rows=1 loops=54,106)

14. 54.106 270.530 ↑ 1.0 1 54,106

Nested Loop Left Join (cost=0.85..1.14 rows=1 width=16) (actual time=0.004..0.005 rows=1 loops=54,106)

15. 108.212 108.212 ↑ 1.0 1 54,106

Index Scan using geolocation__case_idx on geolocation_t g (cost=0.42..0.51 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=54,106)

  • Index Cond: (case_id = c.id)
16. 108.212 108.212 ↓ 0.0 0 54,106

Index Scan using geolocation_address_pk on geolocation_address_context_t gac_norm (cost=0.43..0.62 rows=1 width=8) (actual time=0.002..0.002 rows=0 loops=54,106)

  • Index Cond: (g.id = geolocation_id)
  • Filter: (is_principal AND ((context_type)::text = 'TARGET'::text))
  • Rows Removed by Filter: 2
17. 108.212 108.212 ↑ 1.0 1 54,106

Index Scan using geolocation_address_pk on geolocation_address_context_t gac_desc (cost=0.43..0.62 rows=1 width=16) (actual time=0.001..0.002 rows=1 loops=54,106)

  • Index Cond: (g.id = geolocation_id)
  • Filter: (is_principal AND ((context_type)::text = 'DESCRIPTIVE_TARGET'::text))
  • Rows Removed by Filter: 1
18. 162.318 162.318 ↑ 1.0 1 54,106

Index Scan using pk_address_t on address_t ad (cost=0.43..1.35 rows=1 width=29) (actual time=0.002..0.003 rows=1 loops=54,106)

  • Index Cond: (id = gac_desc.address_id)
19. 0.500 0.500 ↑ 1.0 1 25

Index Scan using geolocation_localization_context_geolocation_id_idx on geolocation_localization_context_t glc (cost=0.43..0.61 rows=1 width=16) (actual time=0.019..0.020 rows=1 loops=25)

  • Index Cond: (g.id = geolocation_id)
  • Filter: ((context_type)::text = 'TARGET'::text)
  • Rows Removed by Filter: 1
20. 0.347 0.400 ↑ 1.0 285 25

Materialize (cost=0.00..8.38 rows=292 width=8) (actual time=0.001..0.016 rows=285 loops=25)

21. 0.053 0.053 ↓ 1.0 295 1

Seq Scan on phase_definition_t pdt (cost=0.00..6.92 rows=292 width=8) (actual time=0.011..0.053 rows=295 loops=1)

22. 0.450 0.450 ↑ 1.0 1 25

Index Only Scan using pk_case_actor_authority on case_actor_authority_t actors1_ (cost=0.43..0.66 rows=1 width=16) (actual time=0.018..0.018 rows=1 loops=25)

  • Index Cond: ((case_id = c.id) AND (authority_abstract_id = 20))
  • Heap Fetches: 25
23. 0.012 0.025 ↑ 1.0 1 25

Materialize (cost=0.00..1.85 rows=1 width=8) (actual time=0.001..0.001 rows=1 loops=25)

24. 0.013 0.013 ↑ 1.0 1 1

Seq Scan on authority_abstract_t abstractau2_ (cost=0.00..1.85 rows=1 width=8) (actual time=0.010..0.013 rows=1 loops=1)

  • Filter: (id = 20)
  • Rows Removed by Filter: 67
Planning time : 4.595 ms