QUERY PLAN
Sort (cost=73.87..73.90 rows=12 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..73.66 rows=12 width=26)
Filter: (contract_id = ANY ('{3392,3525,3549,3661,3755,3725,3746,2708,656,3232}'::integer[]))