QUERY PLAN
Aggregate (cost=4.89..4.90 rows=1 width=8)
-> Sort (cost=4.41..4.49 rows=32 width=612)
Sort Key: s.created_by DESC, s.created_at DESC
-> HashAggregate (cost=3.29..3.61 rows=32 width=612)
Group Key: s.id
-> Seq Scan on tbl_task_files s (cost=0.00..3.21 rows=32 width=16)
Filter: (task_group_id = 106)