QUERY PLAN
Limit (cost=18.38..18.39 rows=2 width=80)
-> Sort (cost=18.38..18.39 rows=2 width=80)
Sort Key: created_at DESC
-> Group (cost=18.36..18.37 rows=2 width=80)
Group Key: id
-> Sort (cost=18.36..18.37 rows=2 width=80)
Sort Key: id
-> Seq Scan on tbl_client_documents cd (cost=0.00..18.35 rows=2 width=80)
Filter: (client_id = 3332)