GroupAggregate (cost=4449.61..4456.39 rows=1 width=12) |
Group Key: uc.object_id |
-> Nested Loop (cost=4449.61..4456.37 rows=1 width=4) |
Join Filter: (uc.object_id = r.id) |
-> Gather Merge (cost=4449.33..4449.52 rows=1 width=8) |
Workers Planned: 1 |
-> Merge Join (cost=3449.32..3449.39 rows=1 width=8) |
Merge Cond: (uc.object_id = rccr.approve_id) |
-> Sort (cost=3358.41..3358.41 rows=1 width=4) |
Sort Key: uc.object_id |
-> Parallel Seq Scan on tbl_unread_comments uc (cost=0.00..3358.40 rows=1 width=4) |
Filter: ((NOT is_read) AND ((object_type)::text = '37'::text) AND (remind_user_id = 1000)) |
-> 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 = 1000) |
-> Index Scan using tbl_approves_pkey on tbl_approves r (cost=0.28..6.84 rows=1 width=4) |
Index Cond: (id = rccr.approve_id) |
Filter: (status <> '0'::smallint) |