Aggregate (cost=18.84..18.85 rows=1 width=48) |
-> Unique (cost=18.30..18.62 rows=6 width=132) |
-> Sort (cost=18.30..18.32 rows=6 width=132) |
Sort Key: r.id, r.title, r.status, r.leave_type, r.leave_start, r.leave_start_type, r.leave_end, r.leave_end_type, r.next_verify_user, r.verify_at, r.next_cancel_verify_user, r.cancel_at, r.description, r.refuse_description, r.is_resubmited, r.created_by, r.created_at, r.updated_at, r.spent_day, r.cancel_description |
-> Group (cost=18.20..18.23 rows=6 width=132) |
Group Key: r.id |
-> Sort (cost=18.20..18.21 rows=6 width=132) |
Sort Key: r.id |
-> Hash Left Join (cost=14.94..18.12 rows=6 width=132) |
Hash Cond: (r.id = crvr.punch_leave_id) |
-> Hash Right Join (cost=13.67..16.82 rows=6 width=132) |
Hash Cond: (rccr.punch_leave_id = r.id) |
Filter: ((r.created_by = ANY ('{1000,1001,1004,1005,1011,1013,1015,1017,1022,1023,5016,5064,5085,5087,5248,5250,5252,5295,5296,5300,5311,5329,5332,5360,5388,5404,5420,5440,5445,5446}'::integer[])) OR (rccr.user_id = 1000) OR (rvr.user_id = 1000)) |
-> Seq Scan on tbl_punch_leave_carbon_copy_rels rccr (cost=0.00..2.22 rows=122 width=8) |
-> Hash (cost=13.58..13.58 rows=7 width=136) |
-> Hash Right Join (cost=11.15..13.58 rows=7 width=136) |
Hash Cond: (rvr.punch_leave_id = r.id) |
-> Seq Scan on tbl_punch_leave_verify_rels rvr (cost=0.00..1.99 rows=99 width=8) |
-> Hash (cost=11.06..11.06 rows=7 width=132) |
-> Hash Join (cost=7.86..11.06 rows=7 width=132) |
Hash Cond: (r.created_by = u.id) |
-> Seq Scan on tbl_punch_leaves r (cost=0.00..2.94 rows=94 width=132) |
-> Hash (cost=7.74..7.74 rows=10 width=4) |
-> Seq Scan on tbl_users u (cost=0.00..7.74 rows=10 width=4) |
Filter: (department_id = 4) |
-> Hash (cost=1.12..1.12 rows=12 width=4) |
-> Seq Scan on tbl_punch_leave_cancel_verify_rels crvr (cost=0.00..1.12 rows=12 width=4) |