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