QUERY PLAN
Limit (cost=31.78..31.78 rows=3 width=77)
-> Sort (cost=31.78..31.78 rows=3 width=77)
Sort Key: created_at DESC
-> Group (cost=31.74..31.75 rows=3 width=77)
Group Key: id
-> Sort (cost=31.74..31.74 rows=3 width=77)
Sort Key: id
-> Seq Scan on tbl_client_documents cd (cost=0.00..31.71 rows=3 width=77)
Filter: (client_id = 3461)