Hash Right Join (cost=168.46..180.63 rows=1 width=20) |
Hash Cond: (ccr.schedule_id = tbl_schedules.id) |
Filter: (((tbl_schedules.is_public = 1) AND (tbl_schedules.created_by <> 1000)) OR (tbl_schedules.created_by = 1000) OR (ccr.user_id = 1000)) |
-> Seq Scan on tbl_schedule_carbon_copy_rels ccr (cost=0.00..10.45 rows=645 width=8) |
-> Hash (cost=168.45..168.45 rows=1 width=45) |
-> Bitmap Heap Scan on tbl_schedules (cost=100.85..168.45 rows=1 width=45) |
Recheck Cond: ((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[])) AND (created_by = 1000)) |
Filter: (((start_at IS NOT NULL) OR (end_at IS NOT NULL)) AND (alarm_before IS NOT NULL)) |
-> Bitmap Index Scan on tbl_schedules_created_by_idx (cost=0.00..100.85 rows=20 width=0) |
Index Cond: ((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[])) AND (created_by = 1000)) |