| GroupAggregate (cost=5244.14..5246.94 rows=1 width=12) |
| Group Key: uc.object_id |
| -> Nested Loop (cost=5244.14..5246.92 rows=1 width=4) |
| -> Gather Merge (cost=5243.85..5245.50 rows=1 width=8) |
| Workers Planned: 1 |
| -> Merge Join (cost=4243.84..4245.38 rows=1 width=8) |
| Merge Cond: (uc.object_id = rccr.reimbursement_id) |
| -> Sort (cost=4235.14..4236.04 rows=359 width=4) |
| Sort Key: uc.object_id |
| -> Parallel Seq Scan on tbl_unread_comments uc (cost=0.00..4219.91 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) |