Aggregate (cost=203.15..203.16 rows=1 width=32) |
-> Hash Left Join (cost=129.43..200.12 rows=1208 width=6) |
Hash Cond: (t.client_id = c.id) |
Filter: ((c.sales_rep = ANY ('{1001,5087,1005,1004,5295,5300,5311,5332,1013,5449}'::integer[])) OR (c.sales_rep IS NULL)) |
-> Seq Scan on tbl_sales_contracts t (cost=0.00..66.45 rows=1610 width=10) |
Filter: (need_analysis AND (created_at < '2025-08-08 14:34:58+08'::timestamp with time zone)) |
-> Hash (cost=105.30..105.30 rows=1930 width=8) |
-> Seq Scan on tbl_clients c (cost=0.00..105.30 rows=1930 width=8) |