| GroupAggregate (cost=5215.70..5219.81 rows=1 width=12) |
| Group Key: uc.object_id |
| -> Nested Loop (cost=5215.70..5219.79 rows=1 width=4) |
| -> Gather Merge (cost=5215.41..5217.09 rows=1 width=8) |
| Workers Planned: 1 |
| -> Merge Join (cost=4215.40..4216.96 rows=1 width=8) |
| Merge Cond: (uc.object_id = rccr.reimbursement_id) |
| -> Sort (cost=4206.84..4207.76 rows=369 width=4) |
| Sort Key: uc.object_id |
| -> Parallel Seq Scan on tbl_unread_comments uc (cost=0.00..4191.11 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..2.71 rows=1 width=4) |
| Index Cond: (id = uc.object_id) |
| Filter: (status <> 0) |