| Aggregate (cost=801.98..801.99 rows=1 width=8) |
| -> Sort (cost=799.62..800.01 rows=157 width=167) |
| Sort Key: s.is_draft DESC, s.end_at DESC |
| -> Group (cost=793.11..793.89 rows=157 width=167) |
| Group Key: s.id |
| -> Sort (cost=793.11..793.50 rows=157 width=13) |
| Sort Key: s.id |
| -> Hash Right Join (cost=607.29..787.38 rows=157 width=13) |
| Hash Cond: (ccr.work_log_id = s.id) |
| -> Seq Scan on tbl_work_log_carbon_copy_rels ccr (cost=0.00..144.59 rows=9359 width=4) |
| -> Hash (cost=605.32..605.32 rows=157 width=13) |
| -> Hash Right Join (cost=457.20..605.32 rows=157 width=13) |
| Hash Cond: (rvr.work_log_id = s.id) |
| -> Seq Scan on tbl_work_log_verify_rels rvr (cost=0.00..126.68 rows=8168 width=4) |
| -> Hash (cost=455.24..455.24 rows=157 width=25) |
| -> Bitmap Heap Scan on tbl_work_logs s (cost=5.51..455.24 rows=157 width=25) |
| Recheck Cond: (client_id = 2032) |
| Filter: (NOT is_draft) |
| -> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..5.47 rows=157 width=0) |
| Index Cond: (client_id = 2032) |