QUERY PLAN
Aggregate (cost=8.01..8.02 rows=1 width=8)
-> Sort (cost=7.96..7.97 rows=3 width=580)
Sort Key: cd.created_at DESC
-> Group (cost=7.92..7.94 rows=3 width=580)
Group Key: cd.id
-> Sort (cost=7.92..7.93 rows=3 width=12)
Sort Key: cd.id
-> Seq Scan on tbl_supplier_documents cd (cost=0.00..7.90 rows=3 width=12)
Filter: (supplier_id = 138)