QUERY PLAN
GroupAggregate (cost=493.47..494.26 rows=44 width=12)
Group Key: client_id
-> Sort (cost=493.47..493.59 rows=46 width=8)
Sort Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..492.20 rows=46 width=8)
Filter: ((created_at >= '2025-01-01 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-12-31 23:59:59+08'::timestamp with time zone) AND (client_id = ANY ('{1661,3375,2128,2492,3360,3361,3329,2547,3365,2158,543,287,497,1181,189,90,3281,3284,3312,530}'::integer[])))