feat: sample recent business events

This commit is contained in:
2026-09-18 21:12:05 +08:00
parent 5284206731
commit 8ce9f4e1fa
14 changed files with 68 additions and 18 deletions

View File

@@ -0,0 +1,4 @@
-- 为固定事件类别的短窗口运行观测提供有界索引。
-- 事件仍是不可变业务证据;索引不改变事件语义,也不引入外键或级联。
ALTER TABLE orbit_events
ADD KEY ix_event_observe_type_occurred (type, occurred_at, id);