Aggregate (cost=375.57..375.58 rows=1 width=8) |
-> Sort (cost=375.37..375.40 rows=13 width=167) |
Sort Key: s.is_draft DESC, s.end_at DESC |
-> Group (cost=375.06..375.13 rows=13 width=167) |
Group Key: s.id |
-> Sort (cost=375.06..375.10 rows=13 width=13) |
Sort Key: s.id |
-> Hash Right Join (cost=195.21..374.82 rows=13 width=13) |
Hash Cond: (ccr.work_log_id = s.id) |
-> Seq Scan on tbl_work_log_carbon_copy_rels ccr (cost=0.00..144.51 rows=9351 width=4) |
-> Hash (cost=195.05..195.05 rows=13 width=13) |
-> Hash Right Join (cost=52.84..195.05 rows=13 width=13) |
Hash Cond: (rvr.work_log_id = s.id) |
-> Seq Scan on tbl_work_log_verify_rels rvr (cost=0.00..121.58 rows=7858 width=4) |
-> Hash (cost=52.68..52.68 rows=13 width=25) |
-> Bitmap Heap Scan on tbl_work_logs s (cost=4.39..52.68 rows=13 width=25) |
Recheck Cond: (client_id = 1661) |
Filter: (NOT is_draft) |
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..4.39 rows=13 width=0) |
Index Cond: (client_id = 1661) |