QUERY PLAN
HashAggregate (cost=2291.97..2292.72 rows=75 width=4)
Group Key: s.created_by
-> Hash Join (cost=217.00..2282.17 rows=3921 width=4)
Hash Cond: (s.id = ccr.work_log_id)
-> Seq Scan on tbl_work_logs s (cost=0.00..1713.31 rows=35731 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)