QUERY PLAN
GroupAggregate (cost=4796.42..4799.25 rows=1 width=12)
Group Key: uc.object_id
-> Nested Loop (cost=4796.42..4799.23 rows=1 width=4)
-> Gather Merge (cost=4796.14..4796.46 rows=1 width=8)
Workers Planned: 1
-> Merge Join (cost=3796.13..3796.34 rows=1 width=8)
Merge Cond: (uc.object_id = rccr.approve_id)
-> Sort (cost=3681.32..3681.56 rows=94 width=4)
Sort Key: uc.object_id
-> Parallel Seq Scan on tbl_unread_comments uc (cost=0.00..3678.24 rows=94 width=4)
Filter: ((NOT is_read) AND ((object_type)::text = '37'::text) AND (remind_user_id = 1001))
-> Sort (cost=114.81..114.83 rows=9 width=4)
Sort Key: rccr.approve_id
-> Seq Scan on tbl_approve_carbon_copy_rels rccr (cost=0.00..114.66 rows=9 width=4)
Filter: (user_id = 1001)
-> Index Scan using tbl_approves_pkey on tbl_approves r (cost=0.28..2.77 rows=1 width=4)
Index Cond: (id = uc.object_id)
Filter: (status <> 0)