QUERY PLAN
Limit (cost=27.76..27.76 rows=2 width=78)
-> Sort (cost=27.76..27.76 rows=2 width=78)
Sort Key: created_at DESC
-> Group (cost=27.74..27.75 rows=2 width=78)
Group Key: id
-> Sort (cost=27.74..27.74 rows=2 width=78)
Sort Key: id
-> Seq Scan on tbl_client_documents cd (cost=0.00..27.73 rows=2 width=78)
Filter: (client_id = 982)