explain.depesz.com

PostgreSQL's explain analyze made readable

Result: H6EO

Settings
# exclusive inclusive rows x rows loops node
1. 0.040 6,250.379 ↑ 1.0 25 1

Limit (cost=4.70..108,869.57 rows=25 width=16) (actual time=792.621..6,250.379 rows=25 loops=1)

2. 0.060 6,250.339 ↑ 22.3 25 1

Nested Loop (cost=4.70..2,429,868.54 rows=558 width=16) (actual time=792.619..6,250.339 rows=25 loops=1)

3. 4.080 6,250.204 ↑ 22.3 25 1

Nested Loop (cost=4.70..2,429,859.72 rows=558 width=24) (actual time=792.584..6,250.204 rows=25 loops=1)

  • Join Filter: (p.definition_id = pdt.id)
  • Rows Removed by Join Filter: 7024
4. 0.172 6,242.324 ↑ 22.3 25 1

Nested Loop (cost=4.70..2,427,408.03 rows=558 width=32) (actual time=792.036..6,242.324 rows=25 loops=1)

5. 0.136 6,241.402 ↑ 25.2 25 1

Nested Loop Left Join (cost=4.27..2,427,070.60 rows=629 width=24) (actual time=791.949..6,241.402 rows=25 loops=1)

6. 1,683.062 6,232.066 ↑ 25.2 25 1

Nested Loop Left Join (cost=3.84..2,426,675.77 rows=629 width=32) (actual time=791.418..6,232.066 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 (...)
  • Rows Removed by Filter: 54189
7. 155.083 3,681.580 ↑ 7.3 54,214 1

Nested Loop Left Join (cost=3.41..1,721,909.89 rows=393,251 width=48) (actual time=1.125..3,681.580 rows=54,214 loops=1)

8. 126.780 3,255.427 ↑ 7.3 54,214 1

Nested Loop Left Join (cost=2.98..1,470,417.74 rows=393,251 width=40) (actual time=1.109..3,255.427 rows=54,214 loops=1)

9. 159.131 2,694.935 ↑ 7.3 54,214 1

Nested Loop Left Join (cost=2.56..1,218,925.59 rows=393,251 width=32) (actual time=0.866..2,694.935 rows=54,214 loops=1)

10. 139.939 2,210.520 ↑ 7.3 54,214 1

Nested Loop Left Join (cost=2.13..1,012,837.08 rows=393,251 width=24) (actual time=0.821..2,210.520 rows=54,214 loops=1)

11. 131.483 2,016.367 ↑ 7.3 54,214 1

Nested Loop (cost=1.70..805,997.72 rows=393,251 width=32) (actual time=0.812..2,016.367 rows=54,214 loops=1)

12. 133.815 1,451.172 ↑ 7.3 54,214 1

Nested Loop Left Join (cost=1.27..568,003.70 rows=393,251 width=24) (actual time=0.757..1,451.172 rows=54,214 loops=1)

13. 207.147 829.431 ↑ 7.3 54,214 1

Nested Loop (cost=0.85..358,388.76 rows=393,251 width=24) (actual time=0.139..829.431 rows=54,214 loops=1)

14. 188.572 188.572 ↑ 7.9 54,214 1

Index Scan using case_reception_date_idx on case_t c (cost=0.42..126,294.04 rows=427,648 width=48) (actual time=0.081..188.572 rows=54,214 loops=1)

  • Filter: ((NOT deleted) AND (NOT a_new_version_exists) AND ((case_type)::text = 'URBANISM'::text))
  • Rows Removed by Filter: 5062
15. 433.712 433.712 ↑ 1.0 1 54,214

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

  • Index Cond: (id = c.configuration_id)
16. 487.926 487.926 ↑ 1.0 1 54,214

Index Scan using case_status_board_to_case_idx on case_status_board_t board (cost=0.42..0.52 rows=1 width=16) (actual time=0.008..0.009 rows=1 loops=54,214)

  • Index Cond: (c.id = case_id)
17. 433.712 433.712 ↑ 1.0 1 54,214

Index Scan using pk_phase_t on phase_t p (cost=0.43..0.60 rows=1 width=24) (actual time=0.007..0.008 rows=1 loops=54,214)

  • Index Cond: (id = config.current_phase_id)
18. 54.214 54.214 ↓ 0.0 0 54,214

Index Only Scan using pk_deadline_acm_t on deadline_acm_t d1 (cost=0.43..0.52 rows=1 width=8) (actual time=0.001..0.001 rows=0 loops=54,214)

  • Index Cond: (id = p.deadline_id)
  • Heap Fetches: 6
19. 325.284 325.284 ↑ 1.0 1 54,214

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

  • Index Cond: (case_id = c.id)
20. 433.712 433.712 ↓ 0.0 0 54,214

Index Scan using geolocation_address_pk on geolocation_address_context_t gac_norm (cost=0.43..0.63 rows=1 width=16) (actual time=0.008..0.008 rows=0 loops=54,214)

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

Index Scan using geolocation_address_pk on geolocation_address_context_t gac_desc (cost=0.43..0.63 rows=1 width=16) (actual time=0.004..0.005 rows=1 loops=54,214)

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

Index Scan using pk_address_t on address_t ad (cost=0.43..1.51 rows=1 width=29) (actual time=0.015..0.016 rows=1 loops=54,214)

  • Index Cond: (id = COALESCE(gac_desc.address_id, gac_norm.address_id))
23. 9.200 9.200 ↑ 1.0 1 25

Index Scan using geolocation_localization_context_geolocation_id_idx on geolocation_localization_context_t glc (cost=0.43..0.62 rows=1 width=16) (actual time=0.367..0.368 rows=1 loops=25)

  • Index Cond: (g.id = geolocation_id)
  • Filter: ((context_type)::text = 'TARGET'::text)
  • Rows Removed by Filter: 1
24. 0.750 0.750 ↑ 1.0 1 25

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

  • Index Cond: ((case_id = c.id) AND (authority_abstract_id = 20))
  • Heap Fetches: 0
25. 3.563 3.800 ↑ 1.0 282 25

Materialize (cost=0.00..8.38 rows=292 width=8) (actual time=0.002..0.152 rows=282 loops=25)

26. 0.237 0.237 ↑ 1.0 292 1

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

27. 0.043 0.075 ↑ 1.0 1 25

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

28. 0.032 0.032 ↑ 1.0 1 1

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

  • Filter: (id = 20)
  • Rows Removed by Filter: 67
Planning time : 71.743 ms
Execution time : 6,250.883 ms