| GroupAggregate (cost=5241.76..5244.56 rows=1 width=12) |
| Group Key: uc.object_id |
| -> Nested Loop (cost=5241.76..5244.55 rows=1 width=4) |
| -> Gather Merge (cost=5241.48..5243.13 rows=1 width=8) |
| Workers Planned: 1 |
| -> Merge Join (cost=4241.47..4243.00 rows=1 width=8) |
| Merge Cond: (uc.object_id = rccr.reimbursement_id) |
| -> Sort (cost=4232.77..4233.66 rows=359 width=4) |
| Sort Key: uc.object_id |
| -> Parallel Seq Scan on tbl_unread_comments uc (cost=0.00..4217.53 rows=359 width=4) |
| Filter: ((NOT is_read) AND ((object_type)::text = '20'::text) AND (remind_user_id = 1001)) |
| -> Sort (cost=8.70..8.70 rows=2 width=4) |
| Sort Key: rccr.reimbursement_id |
| -> Seq Scan on tbl_reimbursement_carbon_copy_rels rccr (cost=0.00..8.69 rows=2 width=4) |
| Filter: (user_id = 1001) |
| -> Index Scan using tbl_reimbursements_pkey on tbl_reimbursements r (cost=0.29..1.42 rows=1 width=4) |
| Index Cond: (id = uc.object_id) |
| Filter: (status <> 0) |