QUERY PLAN
Aggregate (cost=8407.74..8407.75 rows=1 width=8)
-> Hash Left Join (cost=22.40..8407.69 rows=19 width=0)
Hash Cond: (a.user_id = u.id)
Filter: ((a.user_id = 0) OR ((u.email)::text ~~* '%caoyongsheng%'::text) OR ((u.mobile)::text ~~* '%caoyongsheng%'::text))
-> Seq Scan on tbl_api_log a (cost=0.00..8380.01 rows=1920 width=8)
Filter: (("time" >= '2025-12-17 17:00:00'::timestamp without time zone) AND ("time" <= '2025-12-17 23:55:00'::timestamp without time zone))
-> Hash (cost=20.51..20.51 rows=151 width=56)
-> Seq Scan on tbl_logins u (cost=0.00..20.51 rows=151 width=56)