From 769d66467764f5e7a05d866fbe76cb5fa6245de6 Mon Sep 17 00:00:00 2001 From: Fortern Date: Wed, 11 Mar 2026 01:06:58 +0800 Subject: [PATCH] prism --- PostgreSQL/prism/prism.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PostgreSQL/prism/prism.sql b/PostgreSQL/prism/prism.sql index 371cbc6..b09bbb0 100644 --- a/PostgreSQL/prism/prism.sql +++ b/PostgreSQL/prism/prism.sql @@ -1,4 +1,5 @@ -- 获取最旧于最新的数据 +-- 2026-01-27 19:27:12.000000 +00:00 select to_timestamp(min(timestamp)) as min, to_timestamp(max(timestamp)) as max from activities; @@ -153,7 +154,7 @@ order by count((world_id, x, y, z)) desc; select world_id, x, y, z, count((world_id, x, y, z)) from activities where action_id = (select action_id from actions where action = 'block-break') - and cause_id is not null + and cause_id is null and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1 group by world_id, x, y, z order by count((world_id, x, y, z)) desc;