QUERY PLAN
Limit (cost=27.85..27.87 rows=10 width=110)
-> Sort (cost=27.85..28.97 rows=450 width=110)
Sort Key: d.updated_at DESC
-> HashAggregate (cost=13.62..18.12 rows=450 width=110)
Group Key: d.id
-> Seq Scan on tbl_documents d (cost=0.00..12.50 rows=450 width=110)