QUERY PLAN
Sort (cost=62.18..62.20 rows=11 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..61.98 rows=11 width=26)
Filter: (contract_id = ANY ('{4109,4061,4132,4024,4020,3993,3911,3914,3883,3770}'::integer[]))