QUERY PLAN
Limit (cost=27.72..27.74 rows=10 width=110)
-> Sort (cost=27.72..28.83 rows=447 width=110)
Sort Key: d.updated_at DESC
-> HashAggregate (cost=13.59..18.06 rows=447 width=110)
Group Key: d.id
-> Seq Scan on tbl_documents d (cost=0.00..12.47 rows=447 width=110)