| Aggregate (cost=10.95..10.96 rows=1 width=8) |
| -> Sort (cost=10.93..10.94 rows=1 width=590) |
| Sort Key: a.created_at DESC |
| -> Nested Loop Anti Join (cost=0.27..10.92 rows=1 width=590) |
| Join Filter: (l.id = r.user_id) |
| -> Nested Loop Left Join (cost=0.00..2.62 rows=1 width=12) |
| Join Filter: (a.id = r.announcement_id) |
| -> Seq Scan on tbl_announcements a (cost=0.00..1.01 rows=1 width=12) |
| Filter: (created_at > '2018-03-06 16:55:56+08'::timestamp with time zone) |
| -> Seq Scan on tbl_read_announcement r (cost=0.00..1.60 rows=1 width=8) |
| Filter: (user_id = 5064) |
| -> Index Only Scan using tbl_logins_pkey on tbl_logins l (cost=0.27..8.29 rows=1 width=4) |
| Index Cond: (id = 5064) |