QUERY PLAN
Limit (cost=27.01..27.04 rows=10 width=109)
-> Sort (cost=27.01..28.09 rows=431 width=109)
Sort Key: d.updated_at DESC
-> HashAggregate (cost=13.39..17.70 rows=431 width=109)
Group Key: d.id
-> Seq Scan on tbl_documents d (cost=0.00..12.31 rows=431 width=109)