QUERY PLAN
Limit (cost=11.65..11.66 rows=1 width=588)
-> Sort (cost=11.65..11.66 rows=1 width=588)
Sort Key: created_at DESC
-> Group (cost=11.63..11.64 rows=1 width=588)
Group Key: id
-> Sort (cost=11.63..11.64 rows=1 width=588)
Sort Key: id
-> Seq Scan on tbl_client_documents cd (cost=0.00..11.62 rows=1 width=588)
Filter: (client_id = 1)