feat: add bounded business state observability

This commit is contained in:
2026-09-18 20:44:41 +08:00
parent bea8efa790
commit 5284206731
18 changed files with 450 additions and 12 deletions

View File

@@ -0,0 +1,10 @@
-- 为有界运行观测提供按状态和时间的前缀索引。
-- 采集只读取固定状态的有限样本,不依赖外键或级联关系。
ALTER TABLE pulse_tasks
ADD KEY ix_task_observe_state_available (state, available_at, id);
ALTER TABLE orbit_deliveries
ADD KEY ix_delivery_observe_state_available (state, available_at, id);
ALTER TABLE weave_instances
ADD KEY ix_workflow_observe_state_updated (state, updated_at, id);