| Aggregate (cost=62.36..62.37 rows=1 width=8) |
| -> Sort (cost=61.73..61.83 rows=42 width=228) |
| Sort Key: s.target_completed_at, s.updated_at DESC |
| -> HashAggregate (cost=60.18..60.60 rows=42 width=228) |
| Group Key: s.id, u.id |
| -> Hash Left Join (cost=12.11..59.97 rows=42 width=26) |
| Hash Cond: (s.head_of = u.id) |
| -> Seq Scan on tbl_tasks s (cost=0.00..47.75 rows=42 width=34) |
| Filter: ((parent_id IS NULL) AND (status = '0'::smallint)) |
| -> Hash (cost=10.30..10.30 rows=144 width=4) |
| -> Index Only Scan using tbl_users_pkey on tbl_users u (cost=0.14..10.30 rows=144 width=4) |