Aggregate (cost=165.32..165.33 rows=1 width=48) |
-> Unique (cost=165.23..165.28 rows=1 width=183) |
-> Sort (cost=165.23..165.24 rows=1 width=183) |
Sort Key: r.id, r.title, r.status, r.overtime_start, r.overtime_end, 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_at, r.updated_at, r.cancel_description, r.minutes, r.client_id, r.project_id |
-> HashAggregate (cost=165.21..165.22 rows=1 width=183) |
Group Key: r.id |
-> Hash Left Join (cost=42.11..115.74 rows=19788 width=183) |
Hash Cond: (r.id = crvr.punch_overtime_id) |
-> Hash Right Join (cost=10.28..48.78 rows=204 width=183) |
Hash Cond: (rccr.punch_overtime_id = r.id) |
Filter: ((r.created_by = ANY ('{1000,1001,1004,1005,1011,1013,1015,1022,1023,5016,5064,5085,5087,5248,5250,5252,5295,5300,5311,5332,5360,5388,5446,5449}'::integer[])) OR (rccr.user_id = 1000) OR (rvr.user_id = 1000)) |
-> Seq Scan on tbl_punch_overtime_carbon_copy_rels rccr (cost=0.00..30.40 rows=2040 width=8) |
-> Hash (cost=10.27..10.27 rows=1 width=187) |
-> Nested Loop Left Join (cost=0.00..10.27 rows=1 width=187) |
Join Filter: (rvr.punch_overtime_id = r.id) |
-> Nested Loop (cost=0.00..9.25 rows=1 width=183) |
-> Seq Scan on tbl_punch_overtimes r (cost=0.00..1.12 rows=1 width=183) |
Filter: (created_by = 1000) |
-> Seq Scan on tbl_users u (cost=0.00..8.12 rows=1 width=4) |
Filter: ((id = 1000) AND (department_id = 10)) |
-> Seq Scan on tbl_punch_overtime_verify_rels rvr (cost=0.00..1.01 rows=1 width=8) |
-> Hash (cost=19.70..19.70 rows=970 width=4) |
-> Seq Scan on tbl_punch_overtime_cancel_verify_rels crvr (cost=0.00..19.70 rows=970 width=4) |