QUERY PLAN
Unique (cost=71.29..71.34 rows=10 width=4)
-> Sort (cost=71.29..71.31 rows=10 width=4)
Sort Key: c.deduct_points_from
-> Nested Loop (cost=0.30..71.12 rows=10 width=4)
-> Nested Loop (cost=0.15..69.20 rows=10 width=4)
-> Seq Scan on tbl_case_remind_receivers crr (cost=0.00..35.50 rows=10 width=4)
Filter: (user_id = 5495)
-> Index Scan using tbl_case_remind_dates_pkey on tbl_case_remind_dates crd (cost=0.15..3.37 rows=1 width=8)
Index Cond: (id = crr.remind_date_id)
-> Index Scan using tbl_cases_pkey on tbl_cases c (cost=0.15..0.19 rows=1 width=8)
Index Cond: (id = crd.case_id)