| GroupAggregate (cost=5359.16..5366.30 rows=1 width=12) |
| Group Key: uc.object_id |
| -> Nested Loop (cost=5359.16..5366.28 rows=1 width=4) |
| Join Filter: (uc.object_id = r.id) |
| -> Gather Merge (cost=5358.88..5359.06 rows=1 width=8) |
| Workers Planned: 1 |
| -> Merge Join (cost=4358.87..4358.94 rows=1 width=8) |
| Merge Cond: (uc.object_id = rccr.approve_id) |
| -> Sort (cost=4219.92..4219.92 rows=2 width=4) |
| Sort Key: uc.object_id |
| -> Parallel Seq Scan on tbl_unread_comments uc (cost=0.00..4219.91 rows=2 width=4) |
| Filter: ((NOT is_read) AND ((object_type)::text = '37'::text) AND (remind_user_id = 5064)) |
| -> Sort (cost=138.95..138.98 rows=11 width=4) |
| Sort Key: rccr.approve_id |
| -> Seq Scan on tbl_approve_carbon_copy_rels rccr (cost=0.00..138.76 rows=11 width=4) |
| Filter: (user_id = 5064) |
| -> Index Scan using tbl_approves_pkey on tbl_approves r (cost=0.28..7.21 rows=1 width=4) |
| Index Cond: (id = rccr.approve_id) |
| Filter: (status <> 0) |