QUERY PLAN
HashAggregate (cost=2230.14..2230.88 rows=74 width=4)
Group Key: s.created_by
-> Hash Join (cost=216.91..2220.33 rows=3922 width=4)
Hash Cond: (s.id = ccr.work_log_id)
-> Seq Scan on tbl_work_logs s (cost=0.00..1661.24 rows=34624 width=8)
-> Hash (cost=167.89..167.89 rows=3922 width=4)
-> Seq Scan on tbl_work_log_carbon_copy_rels ccr (cost=0.00..167.89 rows=3922 width=4)
Filter: (user_id = 1001)