QUERY PLAN
Sort (cost=73.82..73.85 rows=10 width=28)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..73.66 rows=10 width=28)
Filter: (contract_id = ANY ('{3843,3841,3840,3836,3844,3835,3803,3763,3755,3746}'::integer[]))