| GroupAggregate (cost=1000.14..4900.28 rows=1 width=12) |
| Group Key: uc.object_id |
| -> Nested Loop (cost=1000.14..4900.27 rows=1 width=4) |
| Join Filter: (uc.object_id = rccr.punch_leave_id) |
| -> Nested Loop (cost=1000.14..4897.08 rows=1 width=8) |
| Join Filter: (uc.object_id = r.id) |
| -> Index Only Scan using tbl_punch_leaves_pkey on tbl_punch_leaves r (cost=0.14..15.37 rows=122 width=4) |
| -> Materialize (cost=1000.00..4876.22 rows=3 width=4) |
| -> Gather (cost=1000.00..4876.21 rows=3 width=4) |
| Workers Planned: 1 |
| -> Parallel Seq Scan on tbl_unread_comments uc (cost=0.00..3875.91 rows=2 width=4) |
| Filter: ((NOT is_read) AND ((object_type)::text = '40'::text) AND (remind_user_id = 1001)) |
| -> Seq Scan on tbl_punch_leave_carbon_copy_rels rccr (cost=0.00..3.09 rows=8 width=4) |
| Filter: (user_id = 1001) |