| Aggregate (cost=342.38..342.39 rows=1 width=8) |
| -> Sort (cost=342.36..342.36 rows=1 width=167) |
| Sort Key: s.is_draft DESC, s.end_at DESC, s.updated_at DESC |
| -> Group (cost=342.34..342.35 rows=1 width=167) |
| Group Key: s.id |
| -> Sort (cost=342.34..342.35 rows=1 width=21) |
| Sort Key: s.id |
| -> Hash Right Join (cost=162.63..342.33 rows=1 width=21) |
| 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=162.62..162.62 rows=1 width=21) |
| -> Hash Right Join (cost=14.50..162.62 rows=1 width=21) |
| 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=14.49..14.49 rows=1 width=33) |
| -> Bitmap Heap Scan on tbl_work_logs s (cost=10.47..14.49 rows=1 width=33) |
| Recheck Cond: ((created_by = 1000) AND (client_id = 982)) |
| Filter: (NOT is_draft) |
| -> BitmapAnd (cost=10.47..10.47 rows=1 width=0) |
| -> Bitmap Index Scan on tbl_work_logs_created_by_idx (cost=0.00..5.01 rows=96 width=0) |
| Index Cond: (created_by = 1000) |
| -> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..5.21 rows=123 width=0) |
| Index Cond: (client_id = 982) |