QUERY PLAN
Sort (cost=70.36..70.39 rows=11 width=29)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..70.17 rows=11 width=29)
Filter: (contract_id = ANY ('{4497,4496,4492,4491,4486,4483,4480,4494,4479,4478}'::integer[]))