explain.depesz.com

PostgreSQL's explain analyze made readable

Result: sLJG

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 343.585 ↓ 2.3 144 1

Group (cost=102,145.02..102,153.04 rows=63 width=108) (actual time=343.321..343.585 rows=144 loops=1)

  • Group Key: street, street_number, extra_number, letter, premise, postalcode, locality, address_type, uuid, municipality_area
2. 11.326 343.961 ↓ 2.8 144 1

Gather Merge (cost=102,145.02..102,151.74 rows=52 width=108) (actual time=343.319..343.961 rows=144 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
3. 0.033 332.635 ↓ 1.8 48 3 / 3

Group (cost=101,144.99..101,145.71 rows=26 width=108) (actual time=332.600..332.635 rows=48 loops=3)

  • Group Key: street, street_number, extra_number, letter, premise, postalcode, locality, address_type, uuid, municipality_area
4. 0.191 332.602 ↓ 1.8 48 3 / 3

Sort (cost=101,144.99..101,145.06 rows=26 width=108) (actual time=332.598..332.602 rows=48 loops=3)

  • Sort Key: street, street_number, extra_number, letter, premise, postalcode, locality, address_type, uuid, municipality_area
  • Sort Method: quicksort Memory: 31kB
5. 328.418 332.411 ↓ 1.8 48 3 / 3

Parallel Bitmap Heap Scan on valid_addresses_se a (cost=855.53..101,144.38 rows=26 width=108) (actual time=28.902..332.411 rows=48 loops=3)

  • Recheck Cond: (((locality_ix)::text = 'umeaa'::text) OR ((postalcode)::text ~~ '903%'::text))
  • Filter: (((address_type = 'NA'::bpchar) OR (address_type = 'NB'::bpchar) OR (address_type = 'NC'::bpchar)) AND (((street_ix)::text = 'sandbeckav'::text) OR (((street)::text % 'Sandbeckav'::text) AND ((levenshtein('sandbeckav'::text, lower((street)::text), 1, 1, 2) <= 3) OR (similarity('sandbeckav'::text, lower((street)::text)) >= '0.5'::double precision))) OR ((street_ix)::text = 'sandbeckavaegen'::text) OR (((street)::text % 'Sandbeckavägen'::text) AND ((levenshtein('sandbeckavägen'::text, lower((street)::text), 1, 1, 2) <= 3) OR (similarity('sandbeckavägen'::text, lower((street)::text)) >= '0.5'::double precision))) OR ((street_ix)::text = 'sandbeckavaeg'::text) OR (((street)::text % 'Sandbeckaväg'::text) AND ((levenshtein('sandbeckaväg'::text, lower((street)::text), 1, 1, 2) <= 3) OR (similarity('sandbeckaväg'::text, lower((street)::text)) >= '0.5'::double precision)))))
  • Rows Removed by Filter: 9,663
  • Heap Blocks: exact=6,663
6. 0.001 3.993 ↓ 0.0 0 1 / 3

BitmapOr (cost=855.53..855.53 rows=51,075 width=0) (actual time=11.978..11.978 rows=0 loops=1)

7. 1.944 1.944 ↑ 1.0 29,133 1 / 3

Bitmap Index Scan on valid_addresses_se_locality_ix_like (cost=0.00..645.45 rows=30,536 width=0) (actual time=5.831..5.831 rows=29,133 loops=1)

  • Index Cond: ((locality_ix)::text = 'umeaa'::text)
8. 2.048 2.048 ↑ 2.5 8,070 1 / 3

Bitmap Index Scan on valid_addresses_se_postalcode_gin (cost=0.00..210.05 rows=20,540 width=0) (actual time=6.145..6.145 rows=8,070 loops=1)

  • Index Cond: ((postalcode)::text ~~ '903%'::text)