| Limit (cost=713.37..713.39 rows=10 width=311) |
| -> Sort (cost=713.37..713.67 rows=123 width=311) |
| Sort Key: s.is_draft DESC, s.end_at DESC |
| -> Group (cost=709.79..710.71 rows=123 width=311) |
| Group Key: s.id |
| -> Sort (cost=709.79..710.09 rows=123 width=295) |
| Sort Key: s.id |
| -> Hash Right Join (cost=525.51..705.52 rows=123 width=295) |
| 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=523.97..523.97 rows=123 width=295) |
| -> Hash Right Join (cost=375.85..523.97 rows=123 width=295) |
| 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=374.31..374.31 rows=123 width=295) |
| -> Bitmap Heap Scan on tbl_work_logs s (cost=5.24..374.31 rows=123 width=295) |
| Recheck Cond: (client_id = 982) |
| Filter: (NOT is_draft) |
| -> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..5.21 rows=123 width=0) |
| Index Cond: (client_id = 982) |