GroupAggregate (cost=4811.37..4811.40 rows=2 width=12) |
Group Key: uc.object_id |
-> Sort (cost=4811.37..4811.37 rows=2 width=4) |
Sort Key: uc.object_id |
-> Nested Loop (cost=1124.09..4811.36 rows=2 width=4) |
Join Filter: (uc.object_id = r.id) |
-> Hash Join (cost=1123.81..4809.51 rows=2 width=8) |
Hash Cond: (uc.object_id = rccr.approve_id) |
-> Gather (cost=1000.00..4685.22 rows=46 width=4) |
Workers Planned: 1 |
-> Parallel Seq Scan on tbl_unread_comments uc (cost=0.00..3680.62 rows=27 width=4) |
Filter: ((NOT is_read) AND ((object_type)::text = '37'::text) AND (remind_user_id = 1011)) |
-> Hash (cost=114.66..114.66 rows=732 width=4) |
-> Seq Scan on tbl_approve_carbon_copy_rels rccr (cost=0.00..114.66 rows=732 width=4) |
Filter: (user_id = 1011) |
-> Index Scan using tbl_approves_pkey on tbl_approves r (cost=0.28..0.91 rows=1 width=4) |
Index Cond: (id = rccr.approve_id) |
Filter: (status <> 0) |