QUERY PLAN
Sort (cost=1.11..1.12 rows=3 width=16)
Sort Key: created_at DESC, id DESC
-> Seq Scan on tbl_purchase_contracts (cost=0.00..1.09 rows=3 width=16)
Filter: ((created_by = 5495) AND (cost_type = 1))