| Aggregate (cost=29.58..29.59 rows=1 width=8) |
| -> Sort (cost=28.20..28.43 rows=92 width=214) |
| Sort Key: s.created_at DESC |
| -> HashAggregate (cost=24.27..25.19 rows=92 width=214) |
| Group Key: s.id |
| -> Hash Right Join (cost=13.06..23.96 rows=126 width=12) |
| Hash Cond: (turs.task_group_id = s.id) |
| -> Seq Scan on tbl_task_group_user_relationships turs (cost=0.00..7.83 rows=483 width=4) |
| -> Hash (cost=12.76..12.76 rows=24 width=12) |
| -> Hash Join (cost=6.07..12.76 rows=24 width=12) |
| Hash Cond: (thrs.task_group_id = s.id) |
| -> Seq Scan on tbl_task_group_head_of_relationships thrs (cost=0.00..6.62 rows=24 width=4) |
| Filter: (user_id = 1001) |
| -> Hash (cost=4.92..4.92 rows=92 width=16) |
| -> Seq Scan on tbl_task_groups s (cost=0.00..4.92 rows=92 width=16) |