QUERY PLAN
Sort (cost=73.82..73.85 rows=10 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..73.66 rows=10 width=26)
Filter: (contract_id = ANY ('{3363,3703,3724,3763,1558,3415,3348,3502,3235,3838}'::integer[]))