QUERY PLAN
HashAggregate (cost=2220.02..2220.76 rows=74 width=4)
Group Key: s.created_by
-> Hash Join (cost=216.78..2210.21 rows=3922 width=4)
Hash Cond: (s.id = ccr.work_log_id)
-> Seq Scan on tbl_work_logs s (cost=0.00..1652.65 rows=34465 width=8)
-> Hash (cost=167.75..167.75 rows=3922 width=4)
-> Seq Scan on tbl_work_log_carbon_copy_rels ccr (cost=0.00..167.75 rows=3922 width=4)
Filter: (user_id = 1001)