Aggregate (cost=631.88..631.89 rows=1 width=8) |
-> Sort (cost=631.16..631.28 rows=48 width=167) |
Sort Key: s.is_draft DESC, s.end_at DESC, s.updated_at DESC |
-> Group (cost=629.58..629.82 rows=48 width=167) |
Group Key: s.id |
-> Sort (cost=629.58..629.70 rows=48 width=21) |
Sort Key: s.id |
-> Nested Loop (cost=439.12..628.24 rows=48 width=21) |
-> Seq Scan on tbl_users u (cost=0.00..8.12 rows=1 width=4) |
Filter: ((id = 1000) AND (department_id = 10)) |
-> Hash Right Join (cost=439.12..619.64 rows=48 width=25) |
Hash Cond: (ccr.work_log_id = s.id) |
Filter: ((s.created_by = ANY ('{1000,1001,1004,1005,1011,1013,1015,1017,1022,1023,5016,5064,5085,5087,5248,5250,5252,5295,5300,5311,5332,5360,5388,5446,5449}'::integer[])) OR (ccr.user_id = 1000)) |
-> Seq Scan on tbl_work_log_carbon_copy_rels ccr (cost=0.00..144.40 rows=9340 width=8) |
-> Hash (cost=437.96..437.96 rows=93 width=25) |
-> Hash Right Join (cost=296.48..437.96 rows=93 width=25) |
Hash Cond: (rvr.work_log_id = s.id) |
-> Seq Scan on tbl_work_log_verify_rels rvr (cost=0.00..121.00 rows=7800 width=4) |
-> Hash (cost=295.32..295.32 rows=93 width=33) |
-> Bitmap Heap Scan on tbl_work_logs s (cost=5.01..295.32 rows=93 width=33) |
Recheck Cond: (created_by = 1000) |
-> Bitmap Index Scan on tbl_work_logs_created_by_idx (cost=0.00..4.99 rows=93 width=0) |
Index Cond: (created_by = 1000) |