QUERY PLAN
Aggregate (cost=5.77..5.78 rows=1 width=8)
-> Sort (cost=5.75..5.76 rows=1 width=580)
Sort Key: cd.created_at DESC
-> Group (cost=5.73..5.74 rows=1 width=580)
Group Key: cd.id
-> Sort (cost=5.73..5.74 rows=1 width=12)
Sort Key: cd.id
-> Seq Scan on tbl_supplier_documents cd (cost=0.00..5.72 rows=1 width=12)
Filter: (supplier_id = 431)