explain.depesz.com

PostgreSQL's explain analyze made readable

Result: KbLd

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 10,933.952 ↓ 0.0 0 1

Limit (cost=7,401.03..7,401.05 rows=5 width=16) (actual time=10,933.952..10,933.952 rows=0 loops=1)

2. 0.003 10,933.951 ↓ 0.0 0 1

Sort (cost=7,401.03..7,401.05 rows=5 width=16) (actual time=10,933.951..10,933.951 rows=0 loops=1)

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

Nested Loop Semi Join (cost=4,257.72..7,400.98 rows=5 width=16) (actual time=10,933.948..10,933.948 rows=0 loops=1)

4. 0.001 10,933.948 ↓ 0.0 0 1

Nested Loop (cost=4,257.28..7,165.88 rows=113 width=16) (actual time=10,933.948..10,933.948 rows=0 loops=1)

5. 0.001 10,933.947 ↓ 0.0 0 1

HashAggregate (cost=4,256.86..4,259.13 rows=227 width=8) (actual time=10,933.947..10,933.947 rows=0 loops=1)

  • Group Key: geolocatio3_.geolocation_id
6. 0.001 10,933.946 ↓ 0.0 0 1

Nested Loop (cost=107.86..4,256.29 rows=227 width=8) (actual time=10,933.946..10,933.946 rows=0 loops=1)

7. 19.453 10,933.945 ↓ 0.0 0 1

Bitmap Heap Scan on address_t address4_ (cost=107.43..1,551.96 rows=326 width=8) (actual time=10,933.945..10,933.945 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=939
8. 0.001 10,914.492 ↓ 0.0 0 1

BitmapOr (cost=107.43..107.43 rows=326 width=0) (actual time=10,914.492..10,914.492 rows=0 loops=1)

9. 5,200.124 5,200.124 ↓ 6.0 966 1

Bitmap Index Scan on address_fr_upper_gist_idx (cost=0.00..53.61 rows=160 width=0) (actual time=5,200.124..5,200.124 rows=966 loops=1)

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

Bitmap Index Scan on address_nl_upper_gist_idx (cost=0.00..53.66 rows=166 width=0) (actual time=5,714.367..5,714.367 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.29 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.79 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 : 1.203 ms
Execution time : 10,934.326 ms