From ad1287d94715a99743e3dc197c06e29146a5c67c Mon Sep 17 00:00:00 2001 From: Fortern Date: Wed, 28 Jan 2026 03:58:05 +0800 Subject: [PATCH] prism --- PostgreSQL/prism/prism.sql | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PostgreSQL/prism/prism.sql b/PostgreSQL/prism/prism.sql index c585721..ff9f080 100644 --- a/PostgreSQL/prism/prism.sql +++ b/PostgreSQL/prism/prism.sql @@ -224,3 +224,11 @@ where action_id = (select action_id from actions where action = 'entity-death') and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1 group by affected_entity_type_id, entity_types.entity_type order by count(*) desc; + +-- 1天内的 block-form 行为按坐标分组 +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-form') + 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;