| GroupAggregate (cost=804.63..804.68 rows=3 width=12) |
| Group Key: created_by |
| -> Sort (cost=804.63..804.64 rows=3 width=4) |
| Sort Key: created_by |
| -> Bitmap Heap Scan on tbl_schedules (cost=145.02..804.61 rows=3 width=4) |
| Recheck Cond: (created_by = ANY ('{5500,5499,5332,1001,5087,5467,5300,5311,5295,1013,5476,1004,1005,5449}'::integer[])) |
| Filter: ((created_at >= '2026-01-01 00:00:00+08'::timestamp with time zone) AND (created_at <= '2026-12-31 23:59:59+08'::timestamp with time zone) AND ((complete_at IS NULL) OR (complete_at > '2026-12-31 23:59:59+08'::timestamp with time zone))) |
| -> Bitmap Index Scan on tbl_schedules_created_by_idx (cost=0.00..145.02 rows=7074 width=0) |
| Index Cond: (created_by = ANY ('{5500,5499,5332,1001,5087,5467,5300,5311,5295,1013,5476,1004,1005,5449}'::integer[])) |