| GroupAggregate (cost=37.36..41.08 rows=1 width=12) |
| Group Key: uc.object_id |
| -> Nested Loop (cost=37.36..41.06 rows=1 width=4) |
| Join Filter: (uc.object_id = r.id) |
| -> Merge Join (cost=37.22..37.28 rows=1 width=8) |
| Merge Cond: (uc.object_id = rccr.approve_id) |
| -> Sort (cost=1.55..1.55 rows=1 width=4) |
| Sort Key: uc.object_id |
| -> Seq Scan on tbl_unread_comments uc (cost=0.00..1.54 rows=1 width=4) |
| Filter: ((NOT is_read) AND ((object_type)::text = '37'::text) AND (remind_user_id = 5495)) |
| -> Sort (cost=35.67..35.69 rows=10 width=4) |
| Sort Key: rccr.approve_id |
| -> Seq Scan on tbl_approve_carbon_copy_rels rccr (cost=0.00..35.50 rows=10 width=4) |
| Filter: (user_id = 5495) |
| -> Index Scan using tbl_approves_pkey on tbl_approves r (cost=0.14..3.77 rows=1 width=4) |
| Index Cond: (id = rccr.approve_id) |
| Filter: (status <> 0) |