| Aggregate (cost=341.78..341.79 rows=1 width=8) |
| -> Sort (cost=341.76..341.77 rows=1 width=167) |
| Sort Key: s.is_draft DESC, s.end_at DESC, s.updated_at DESC |
| -> Group (cost=341.74..341.75 rows=1 width=167) |
| Group Key: s.id |
| -> Sort (cost=341.74..341.75 rows=1 width=21) |
| Sort Key: s.id |
| -> Hash Right Join (cost=162.04..341.73 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.02..162.02 rows=1 width=21) |
| -> Hash Right Join (cost=13.90..162.02 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=13.89..13.89 rows=1 width=33) |
| -> Bitmap Heap Scan on tbl_work_logs s (cost=9.87..13.89 rows=1 width=33) |
| Recheck Cond: ((project_id = 1111) AND (created_by = 1000)) |
| Filter: ((NOT is_draft) AND (client_id = 982)) |
| -> BitmapAnd (cost=9.87..9.87 rows=1 width=0) |
| -> Bitmap Index Scan on tbl_work_logs_project_end_at_idx (cost=0.00..4.61 rows=43 width=0) |
| Index Cond: (project_id = 1111) |
| -> Bitmap Index Scan on tbl_work_logs_created_by_idx (cost=0.00..5.01 rows=96 width=0) |
| Index Cond: (created_by = 1000) |