| GroupAggregate (cost=5213.32..5216.12 rows=1 width=12) |
| Group Key: uc.object_id |
| -> Nested Loop (cost=5213.32..5216.10 rows=1 width=4) |
| -> Gather Merge (cost=5213.04..5214.71 rows=1 width=8) |
| Workers Planned: 1 |
| -> Merge Join (cost=4213.03..4214.59 rows=1 width=8) |
| Merge Cond: (uc.object_id = rccr.reimbursement_id) |
| -> Sort (cost=4204.46..4205.39 rows=369 width=4) |
| Sort Key: uc.object_id |
| -> Parallel Seq Scan on tbl_unread_comments uc (cost=0.00..4188.73 rows=369 width=4) |
| Filter: ((NOT is_read) AND ((object_type)::text = '20'::text) AND (remind_user_id = 1001)) |
| -> Sort (cost=8.56..8.57 rows=2 width=4) |
| Sort Key: rccr.reimbursement_id |
| -> Seq Scan on tbl_reimbursement_carbon_copy_rels rccr (cost=0.00..8.55 rows=2 width=4) |
| Filter: (user_id = 1001) |
| -> Index Scan using tbl_reimbursements_pkey on tbl_reimbursements r (cost=0.29..1.39 rows=1 width=4) |
| Index Cond: (id = uc.object_id) |
| Filter: (status <> 0) |