explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 9mFg

Settings
# exclusive inclusive rows x rows loops node
1. 0.008 2,171.551 ↑ 1.0 25 1

Limit (cost=4.70..111,320.24 rows=25 width=16) (actual time=342.406..2,171.551 rows=25 loops=1)

2. 0.020 2,171.543 ↑ 22.5 25 1

Nested Loop (cost=4.70..2,502,378.18 rows=562 width=16) (actual time=342.404..2,171.543 rows=25 loops=1)

3. 0.054 2,171.473 ↑ 22.5 25 1

Nested Loop (cost=4.70..2,502,369.30 rows=562 width=24) (actual time=342.355..2,171.473 rows=25 loops=1)

4. 0.663 2,170.119 ↑ 26.2 25 1

Nested Loop (cost=4.27..2,501,932.48 rows=654 width=16) (actual time=342.099..2,170.119 rows=25 loops=1)

  • Join Filter: (pdt.id = p.definition_id)
  • Rows Removed by Join Filter: 7096
5. 0.020 2,168.956 ↑ 26.2 25 1

Nested Loop Left Join (cost=4.27..2,499,060.31 rows=654 width=24) (actual time=341.954..2,168.956 rows=25 loops=1)

6. 354.112 2,168.061 ↑ 26.2 25 1

Nested Loop Left Join (cost=3.84..2,498,655.49 rows=654 width=32) (actual time=341.911..2,168.061 rows=25 loops=1)

  • Filter: (f_unaccent(upper((ad.sortable_address_fr)::text)) ~~ '%ROUGE%'::text)
  • Rows Removed by Filter: 54047
7. 34.866 1,489.517 ↑ 7.6 54,072 1

Nested Loop Left Join (cost=3.41..1,787,549.32 rows=408,991 width=48) (actual time=1.170..1,489.517 rows=54,072 loops=1)

8. 1.267 1,346.507 ↑ 7.6 54,072 1

Nested Loop Left Join (cost=2.98..1,529,876.47 rows=408,991 width=40) (actual time=1.165..1,346.507 rows=54,072 loops=1)

9. 28.938 1,074.880 ↑ 7.6 54,072 1

Nested Loop Left Join (cost=2.56..1,272,203.63 rows=408,991 width=32) (actual time=0.991..1,074.880 rows=54,072 loops=1)

10. 33.881 883.726 ↑ 7.6 54,072 1

Nested Loop Left Join (cost=2.13..1,060,181.02 rows=408,991 width=24) (actual time=0.794..883.726 rows=54,072 loops=1)

11. 51.071 849.845 ↑ 7.6 54,072 1

Nested Loop (cost=1.70..816,554.92 rows=408,991 width=32) (actual time=0.783..849.845 rows=54,072 loops=1)

12. 31.825 582.486 ↑ 7.6 54,072 1

Nested Loop Left Join (cost=1.27..572,736.49 rows=408,991 width=24) (actual time=0.642..582.486 rows=54,072 loops=1)

13. 51.480 388.445 ↑ 7.6 54,072 1

Nested Loop (cost=0.85..364,849.71 rows=408,991 width=24) (actual time=0.534..388.445 rows=54,072 loops=1)

14. 120.677 120.677 ↑ 8.2 54,072 1

Index Scan using case_reception_date_idx on case_t c (cost=0.42..126,059.08 rows=445,071 width=48) (actual time=0.351..120.677 rows=54,072 loops=1)

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

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

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

Index Scan using case_status_board_to_case_idx on case_status_board_t board (cost=0.42..0.50 rows=1 width=16) (actual time=0.003..0.003 rows=1 loops=54,072)

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

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

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

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

  • Index Cond: (id = p.deadline_id)
  • Heap Fetches: 85
19. 162.216 162.216 ↑ 1.0 1 54,072

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

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

Index Scan using geolocation_address_pk on geolocation_address_context_t gac_norm (cost=0.43..0.62 rows=1 width=16) (actual time=0.005..0.005 rows=0 loops=54,072)

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

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.002..0.002 rows=1 loops=54,072)

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

Index Scan using pk_address_t on address_t ad (cost=0.43..1.47 rows=1 width=42) (actual time=0.005..0.006 rows=1 loops=54,072)

  • Index Cond: (id = COALESCE(gac_desc.address_id, gac_norm.address_id))
23. 0.875 0.875 ↑ 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.034..0.035 rows=1 loops=25)

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

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

25. 0.088 0.088 ↓ 1.0 295 1

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

26. 1.300 1.300 ↑ 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.052..0.052 rows=1 loops=25)

  • Index Cond: ((case_id = c.id) AND (authority_abstract_id = 20))
  • Heap Fetches: 25
27. 0.009 0.050 ↑ 1.0 1 25

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

28. 0.041 0.041 ↑ 1.0 1 1

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

  • Filter: (id = 20)
  • Rows Removed by Filter: 67
Planning time : 113.805 ms
Execution time : 2,171.799 ms