QUERY PLAN
HashAggregate (cost=423.02..424.38 rows=136 width=290)
Group Key: w.scenario_option_id, wso.name
-> Hash Left Join (cost=7.27..422.00 rows=136 width=282)
Hash Cond: (w.scenario_option_id = wso.id)
-> Bitmap Heap Scan on tbl_work_logs w (cost=5.39..419.73 rows=136 width=8)
Recheck Cond: (client_id = 2202)
Filter: ((NOT is_draft) AND (scenario_id = 1))
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..5.35 rows=142 width=0)
Index Cond: (client_id = 2202)
-> Hash (cost=1.39..1.39 rows=39 width=278)
-> Seq Scan on tbl_work_log_scenario_options wso (cost=0.00..1.39 rows=39 width=278)