QUERY PLAN
Aggregate (cost=31.77..31.78 rows=1 width=8)
-> Sort (cost=31.74..31.75 rows=2 width=588)
Sort Key: cd.created_at DESC
-> Group (cost=31.72..31.73 rows=2 width=588)
Group Key: cd.id
-> Sort (cost=31.72..31.73 rows=2 width=12)
Sort Key: cd.id
-> Seq Scan on tbl_client_documents cd (cost=0.00..31.71 rows=2 width=12)
Filter: (project_id = 1972)