GroupAggregate (cost=4447.20..4449.95 rows=1 width=12) |
Group Key: uc.object_id |
-> Nested Loop (cost=4447.20..4449.93 rows=1 width=4) |
-> Gather Merge (cost=4446.93..4447.21 rows=1 width=8) |
Workers Planned: 1 |
-> Merge Join (cost=3446.92..3447.09 rows=1 width=8) |
Merge Cond: (uc.object_id = rccr.approve_id) |
-> Sort (cost=3356.00..3356.19 rows=76 width=4) |
Sort Key: uc.object_id |
-> Parallel Seq Scan on tbl_unread_comments uc (cost=0.00..3353.63 rows=76 width=4) |
Filter: ((NOT is_read) AND ((object_type)::text = '37'::text) AND (remind_user_id = 1001)) |
-> Sort (cost=90.92..90.94 rows=11 width=4) |
Sort Key: rccr.approve_id |
-> Seq Scan on tbl_approve_carbon_copy_rels rccr (cost=0.00..90.72 rows=11 width=4) |
Filter: (user_id = 1001) |
-> Index Scan using tbl_approves_pkey on tbl_approves r (cost=0.28..2.72 rows=1 width=4) |
Index Cond: (id = uc.object_id) |
Filter: (status <> 0) |