QUERY PLAN
Aggregate (cost=42.85..42.86 rows=1 width=8)
-> Sort (cost=36.41..37.48 rows=429 width=611)
Sort Key: d.updated_at DESC
-> HashAggregate (cost=13.36..17.65 rows=429 width=611)
Group Key: d.id
-> Seq Scan on tbl_documents d (cost=0.00..12.29 rows=429 width=12)