GroupAggregate (cost=587.62..587.65 rows=1 width=12) |
Group Key: (CASE WHEN tbl_schedules.is_complete THEN 1 WHEN ((NOT tbl_schedules.is_complete) AND (tbl_schedules.end_at < '2025-08-09 19:36:08+08'::timestamp with time zone)) THEN 2 ELSE 0 END) |
-> Sort (cost=587.62..587.63 rows=1 width=8) |
Sort Key: (CASE WHEN tbl_schedules.is_complete THEN 1 WHEN ((NOT tbl_schedules.is_complete) AND (tbl_schedules.end_at < '2025-08-09 19:36:08+08'::timestamp with time zone)) THEN 2 ELSE 0 END) |
-> Result (cost=0.00..587.62 rows=1 width=8) |
One-Time Filter: false |
-> Seq Scan on tbl_schedules (cost=0.00..587.62 rows=1 width=8) |
Filter: (is_public = 1) |