Index Scan using tbl_clients_pkey on tbl_clients (cost=26.28..34.30 rows=1 width=534) |
Index Cond: (id = 3081) |
Filter: ((NOT deleted) AND ((sales_rep IS NULL) OR (hashed SubPlan 1)) AND ((sales_rep IS NOT NULL) OR (hashed SubPlan 2))) |
SubPlan 1 |
-> Seq Scan on tbl_user_visit_clients (cost=0.00..13.00 rows=1 width=4) |
Filter: (user_id = 5446) |
SubPlan 2 |
-> Seq Scan on tbl_user_visit_clients tbl_user_visit_clients_1 (cost=0.00..13.00 rows=1 width=4) |
Filter: (user_id = 5446) |