QUERY PLAN
Unique (cost=259.25..259.30 rows=11 width=4)
-> Sort (cost=259.25..259.28 rows=11 width=4)
Sort Key: s.created_by
-> Nested Loop (cost=0.29..259.06 rows=11 width=4)
-> Seq Scan on tbl_work_log_carbon_copy_rels ccr (cost=0.00..167.68 rows=11 width=4)
Filter: (user_id = 1000)
-> Index Scan using tbl_work_logs_pkey on tbl_work_logs s (cost=0.29..8.31 rows=1 width=8)
Index Cond: (id = ccr.work_log_id)