Limit (cost=35.08..35.10 rows=5 width=524) |
-> Sort (cost=35.08..35.10 rows=5 width=524) |
Sort Key: s.is_complete, s.end_at DESC, s.created_at DESC |
-> Group (cost=34.97..35.02 rows=5 width=524) |
Group Key: s.id |
-> Sort (cost=34.97..34.99 rows=5 width=520) |
Sort Key: s.id |
-> Hash Right Join (cost=22.77..34.92 rows=5 width=520) |
Hash Cond: (ccr.schedule_id = s.id) |
Filter: (((s.is_public = 1) AND (s.created_by <> 5295)) OR (s.created_by = 5295) OR (ccr.user_id = 5295)) |
-> Seq Scan on tbl_schedule_carbon_copy_rels ccr (cost=0.00..10.45 rows=645 width=8) |
-> Hash (cost=22.71..22.71 rows=5 width=520) |
-> Bitmap Heap Scan on tbl_schedules s (cost=4.32..22.71 rows=5 width=520) |
Recheck Cond: (client_id = 3332) |
-> Bitmap Index Scan on tbl_schedules_client_id_idx (cost=0.00..4.32 rows=5 width=0) |
Index Cond: (client_id = 3332) |