QUERY PLAN
Unique (cost=681.20..681.96 rows=77 width=4)
-> Sort (cost=681.20..681.58 rows=151 width=4)
Sort Key: s.created_by
-> Hash Join (cost=14.49..675.74 rows=151 width=4)
Hash Cond: (s.id = ccr.schedule_id)
-> Seq Scan on tbl_schedules s (cost=0.00..564.84 rows=15184 width=8)
-> Hash (cost=12.60..12.60 rows=151 width=4)
-> Seq Scan on tbl_schedule_carbon_copy_rels ccr (cost=0.00..12.60 rows=151 width=4)
Filter: (user_id = 1001)