QUERY PLAN
Unique (cost=679.50..680.25 rows=77 width=4)
-> Sort (cost=679.50..679.88 rows=151 width=4)
Sort Key: s.created_by
-> Hash Join (cost=14.50..674.03 rows=151 width=4)
Hash Cond: (s.id = ccr.schedule_id)
-> Seq Scan on tbl_schedules s (cost=0.00..563.40 rows=15140 width=8)
-> Hash (cost=12.61..12.61 rows=151 width=4)
-> Seq Scan on tbl_schedule_carbon_copy_rels ccr (cost=0.00..12.61 rows=151 width=4)
Filter: (user_id = 1001)