explain.depesz.com

PostgreSQL's explain analyze made readable

Result: p5onq

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 77.243 ↓ 0.0 0 1

Limit (cost=10,827.88..10,827.90 rows=7 width=16) (actual time=77.243..77.243 rows=0 loops=1)

2. 0.006 77.242 ↓ 0.0 0 1

Sort (cost=10,827.88..10,827.90 rows=7 width=16) (actual time=77.242..77.242 rows=0 loops=1)

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

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

4. 0.001 77.236 ↓ 0.0 0 1

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

5. 0.001 77.235 ↓ 0.0 0 1

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

  • Group Key: geolocatio3_.geolocation_id
6. 0.001 77.234 ↓ 0.0 0 1

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

7. 0.001 77.233 ↓ 0.0 0 1

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

  • Recheck Cond: ((f_unaccent(upper((street_name_french)::text)) ~~ '%1736462%'::text) OR (f_unaccent(upper((street_name_dutch)::text)) ~~ '%1736462%'::text))
8. 0.003 77.232 ↓ 0.0 0 1

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

9. 37.555 37.555 ↓ 0.0 0 1

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

  • Index Cond: (f_unaccent(upper((street_name_french)::text)) ~~ '%1736462%'::text)
10. 39.674 39.674 ↓ 0.0 0 1

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

  • Index Cond: (f_unaccent(upper((street_name_dutch)::text)) ~~ '%1736462%'::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 <> 'ENVIRONMENT'::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.20 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 : 1.481 ms
Execution time : 77.537 ms