This commit is contained in:
2026-01-04 17:32:19 +08:00
parent f5b352c036
commit 612612b37a

View File

@@ -136,6 +136,15 @@ where action_id = (select action_id from actions where action = 'block-break')
group by affected_block_id, blocks.name group by affected_block_id, blocks.name
order by count((affected_block_id, blocks.name)) desc; order by count((affected_block_id, blocks.name)) desc;
-- 1天内decay 破换方块,按坐标分组
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 = (select causes.cause_id from causes where cause = 'decay')
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;
-- 1天内非明确实体触发的block-break行为按坐标分组 -- 1天内非明确实体触发的block-break行为按坐标分组
select world_id, x, y, z, count((world_id, x, y, z)) select world_id, x, y, z, count((world_id, x, y, z))
from activities from activities