QUERY PLAN
Sort (cost=70.36..70.39 rows=11 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..70.17 rows=11 width=26)
Filter: (contract_id = ANY ('{4486,4495,4248,4235,2765,3470,3620,4467,4476,4479}'::integer[]))