explain.depesz.com

PostgreSQL's explain analyze made readable

Result: bbyM

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 2,029.070 ↓ 0.0 0 1

Limit (cost=10,846.09..10,846.11 rows=7 width=16) (actual time=2,029.070..2,029.070 rows=0 loops=1)

2. 0.008 2,029.069 ↓ 0.0 0 1

Sort (cost=10,846.09..10,846.11 rows=7 width=16) (actual time=2,029.069..2,029.069 rows=0 loops=1)

  • Sort Key: case0_.reception_date DESC, case0_.id DESC
  • Sort Method: quicksort Memory: 25kB
3. 0.000 2,029.061 ↓ 0.0 0 1

Nested Loop Semi Join (cost=6,550.01..10,845.99 rows=7 width=16) (actual time=2,029.061..2,029.061 rows=0 loops=1)

4. 0.000 2,029.061 ↓ 0.0 0 1

Nested Loop (cost=6,549.58..10,521.42 rows=156 width=16) (actual time=2,029.061..2,029.061 rows=0 loops=1)

5. 0.002 2,029.061 ↓ 0.0 0 1

HashAggregate (cost=6,549.16..6,552.28 rows=312 width=8) (actual time=2,029.061..2,029.061 rows=0 loops=1)

  • Group Key: geolocatio3_.geolocation_id
6. 0.000 2,029.059 ↓ 0.0 0 1

Nested Loop (cost=37.44..6,548.38 rows=312 width=8) (actual time=2,029.059..2,029.059 rows=0 loops=1)

7. 42.969 2,029.059 ↓ 0.0 0 1

Bitmap Heap Scan on address_t address4_ (cost=37.02..2,274.41 rows=523 width=8) (actual time=2,029.059..2,029.059 rows=0 loops=1)

  • Recheck Cond: ((f_unaccent(upper((street_name_french)::text)) ~~ '%Prosper%'::text) OR (f_unaccent(upper((street_name_dutch)::text)) ~~ '%Prosper%'::text))
  • Rows Removed by Index Recheck: 966
  • Heap Blocks: exact=457
8. 0.003 1,986.090 ↓ 0.0 0 1

BitmapOr (cost=37.02..37.02 rows=523 width=0) (actual time=1,986.090..1,986.090 rows=0 loops=1)

9. 908.172 908.172 ↓ 3.7 966 1

Bitmap Index Scan on address_fr_upper_gist_idx (cost=0.00..18.38 rows=262 width=0) (actual time=908.172..908.172 rows=966 loops=1)

  • Index Cond: (f_unaccent(upper((street_name_french)::text)) ~~ '%Prosper%'::text)
10. 1,077.915 1,077.915 ↓ 3.0 778 1

Bitmap Index Scan on address_nl_upper_gist_idx (cost=0.00..18.38 rows=262 width=0) (actual time=1,077.915..1,077.915 rows=778 loops=1)

  • Index Cond: (f_unaccent(upper((street_name_dutch)::text)) ~~ '%Prosper%'::text)
11. 0.000 0.000 ↓ 0.0 0

Index Scan using geolocation_address_context_t_address_idx on geolocation_address_context_t geolocatio3_ (cost=0.43..8.16 rows=1 width=16) (never executed)

  • Index Cond: (address_id = address4_.id)
12. 0.000 0.000 ↓ 0.0 0

Index Scan using case_geolocation_id_idx on case_t case0_ (cost=0.42..12.70 rows=1 width=24) (never executed)

  • Index Cond: (geolocation_id = geolocatio3_.geolocation_id)
  • Filter: ((NOT a_new_version_exists) AND ((case_type)::text <> 'URBANISME'::text) AND (SubPlan 1))
13.          

SubPlan (for Index Scan)

14. 0.000 0.000 ↓ 0.0 0

Index Scan using case_actor_authority_case_idx on case_actor_authority_t actors1_ (cost=0.43..8.66 rows=3 width=8) (never executed)

  • Index Cond: (case0_.id = case_id)
15. 0.000 0.000 ↓ 0.0 0

Index Scan using reference_case_idx on reference_t reference2_ (cost=0.43..2.08 rows=1 width=8) (never executed)

  • Index Cond: (external_id = case0_.id)
  • Filter: ((reference_type_id <> 10035) AND (upper((reference)::text) ~~ '%9767%'::text))
Planning time : 3.335 ms
Execution time : 2,029.980 ms