QUERY PLAN
Limit (cost=7.93..7.93 rows=1 width=52)
-> Sort (cost=7.93..7.93 rows=1 width=52)
Sort Key: created_at DESC
-> Group (cost=7.91..7.92 rows=1 width=52)
Group Key: id
-> Sort (cost=7.91..7.92 rows=1 width=52)
Sort Key: id
-> Seq Scan on tbl_supplier_documents cd (cost=0.00..7.90 rows=1 width=52)
Filter: (supplier_id = 100)