QUERY PLAN
Sort (cost=80.31..80.35 rows=16 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..79.99 rows=16 width=26)
Filter: (contract_id = ANY ('{4486,4480,4481,4484,4324,1186,1558,1930,4467,4476,4462,4479,4478}'::integer[]))