QUERY PLAN
Aggregate (cost=27156.23..27156.24 rows=1 width=8)
-> Gather (cost=1000.00..27156.23 rows=1 width=0)
Workers Planned: 2
-> Parallel Seq Scan on tbl_api_log a (cost=0.00..26156.13 rows=1 width=0)
Filter: (("time" >= '2025-08-05 00:00:00'::timestamp without time zone) AND ("time" < '2025-08-06 00:00:00'::timestamp without time zone) AND (device_type = '0'::smallint))