QUERY PLAN
HashAggregate (cost=2291.01..2291.77 rows=76 width=4)
Group Key: s.created_by
-> Hash Join (cost=217.00..2281.20 rows=3921 width=4)
Hash Cond: (s.id = ccr.work_log_id)
-> Seq Scan on tbl_work_logs s (cost=0.00..1712.33 rows=35733 width=8)
-> Hash (cost=167.99..167.99 rows=3921 width=4)
-> Seq Scan on tbl_work_log_carbon_copy_rels ccr (cost=0.00..167.99 rows=3921 width=4)
Filter: (user_id = 1001)