| Nested Loop (cost=149.86..442.18 rows=147 width=74) |
| -> Hash Right Join (cost=149.58..337.74 rows=228 width=65) |
| Hash Cond: (p.client_id = c.id) |
| -> Seq Scan on tbl_projects p (cost=0.00..180.19 rows=1623 width=8) |
| Filter: (project_status = 3) |
| -> Hash (cost=146.73..146.73 rows=228 width=61) |
| -> Hash Join (cost=112.07..146.73 rows=228 width=61) |
| Hash Cond: (car.client_id = c.id) |
| -> Seq Scan on tbl_client_address_rels car (cost=0.00..29.73 rows=1873 width=8) |
| -> Hash (cost=109.10..109.10 rows=238 width=57) |
| -> Bitmap Heap Scan on tbl_clients c (cost=6.12..109.10 rows=238 width=57) |
| Recheck Cond: (sales_rep = 5332) |
| Filter: (NOT deleted) |
| -> Bitmap Index Scan on tbl_clients_sales_rep_idx (cost=0.00..6.06 rows=238 width=0) |
| Index Cond: (sales_rep = 5332) |
| -> Index Scan using tbl_addresses_pkey on tbl_addresses ad (cost=0.28..0.46 rows=1 width=20) |
| Index Cond: (id = car.address_id) |
| Filter: ((geolocation IS NOT NULL) AND (geolocation <> '(0,0)'::point)) |