| Aggregate (cost=723.21..723.22 rows=1 width=8) |
| -> Sort (cost=721.31..721.63 rows=127 width=167) |
| Sort Key: s.is_draft DESC, s.end_at DESC |
| -> Group (cost=716.24..716.87 rows=127 width=167) |
| Group Key: s.id |
| -> Sort (cost=716.24..716.55 rows=127 width=13) |
| Sort Key: s.id |
| -> Hash Right Join (cost=531.76..711.80 rows=127 width=13) |
| Hash Cond: (ccr.work_log_id = s.id) |
| -> Seq Scan on tbl_work_log_carbon_copy_rels ccr (cost=0.00..144.60 rows=9360 width=4) |
| -> Hash (cost=530.17..530.17 rows=127 width=13) |
| -> Hash Right Join (cost=385.60..530.17 rows=127 width=13) |
| Hash Cond: (rvr.work_log_id = s.id) |
| -> Seq Scan on tbl_work_log_verify_rels rvr (cost=0.00..123.66 rows=7966 width=4) |
| -> Hash (cost=384.01..384.01 rows=127 width=25) |
| -> Bitmap Heap Scan on tbl_work_logs s (cost=5.27..384.01 rows=127 width=25) |
| Recheck Cond: (client_id = 982) |
| Filter: (NOT is_draft) |
| -> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..5.24 rows=127 width=0) |
| Index Cond: (client_id = 982) |