Limit (cost=2713.06..2713.11 rows=20 width=321) |
-> Sort (cost=2713.06..2713.97 rows=364 width=321) |
Sort Key: s.is_draft DESC, s.end_at DESC, s.updated_at DESC NULLS LAST, s.created_at DESC |
-> Group (cost=2698.82..2703.37 rows=364 width=321) |
Group Key: s.id, lin.id, lout.id |
-> Sort (cost=2698.82..2699.73 rows=364 width=305) |
Sort Key: s.id, lin.id, lout.id |
-> Hash Right Join (cost=1944.53..2683.34 rows=364 width=305) |
Hash Cond: (lout.id = s.location_out_id) |
-> Seq Scan on tbl_location lout (cost=0.00..503.20 rows=18820 width=4) |
-> Hash (cost=1939.98..1939.98 rows=364 width=301) |
-> Hash Right Join (cost=1294.86..1939.98 rows=364 width=301) |
Hash Cond: (lin.id = s.location_in_id) |
-> Seq Scan on tbl_location lin (cost=0.00..503.20 rows=18820 width=4) |
-> Hash (cost=1290.31..1290.31 rows=364 width=297) |
-> Hash Right Join (cost=1104.52..1290.31 rows=364 width=297) |
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,5296,5300,5311,5329,5332,5360,5388,5404,5420,5440,5445,5446}'::integer[])) OR (ccr.user_id = 1001)) |
-> Seq Scan on tbl_work_log_carbon_copy_rels ccr (cost=0.00..144.34 rows=9334 width=8) |
-> Hash (cost=1098.72..1098.72 rows=464 width=297) |
-> Hash Right Join (cost=961.99..1098.72 rows=464 width=297) |
Hash Cond: (rvr.work_log_id = s.id) |
-> Seq Scan on tbl_work_log_verify_rels rvr (cost=0.00..116.82 rows=7582 width=4) |
-> Hash (cost=956.19..956.19 rows=464 width=297) |
-> Bitmap Heap Scan on tbl_work_logs s (cost=25.52..956.19 rows=464 width=297) |
Recheck Cond: ((created_by = 1000) OR (created_by = 5250) OR (created_by = 5016) OR (created_by = 5064) OR (created_by = 5440)) |
Filter: (NOT is_draft) |
-> BitmapOr (cost=25.52..25.52 rows=467 width=0) |
-> Bitmap Index Scan on tbl_work_logs_created_by_idx (cost=0.00..4.99 rows=93 width=0) |
Index 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 = 5250) |
-> Bitmap Index Scan on tbl_work_logs_created_by_idx (cost=0.00..4.99 rows=93 width=0) |
Index Cond: (created_by = 5016) |
-> Bitmap Index Scan on tbl_work_logs_created_by_idx (cost=0.00..4.99 rows=93 width=0) |
Index Cond: (created_by = 5064) |
-> Bitmap Index Scan on tbl_work_logs_created_by_idx (cost=0.00..4.99 rows=93 width=0) |
Index Cond: (created_by = 5440) |