修复生产PostgreSQL高CPU与15秒超时热路径(迁移187)
This commit is contained in:
@@ -11,8 +11,8 @@ updated_at: 2026-11-28
|
||||
|
||||
> 状态:**唯一权威文档**。
|
||||
> 最后校准:2026-11-28。
|
||||
> 生产基线:迁移 `185`(2026-11-28 核对)。
|
||||
> 开发基线:迁移 `186`(仅本地,尚未部署生产)。
|
||||
> 生产基线:迁移 `186`(2026-11-28 部署验证)。
|
||||
> 开发基线:迁移 `187`(热路径索引与 SQL 优化,仅本地)。
|
||||
>
|
||||
> 从本文件生效起,订单、内部 SKU、履约渠道、履约载体、标准商品、成本和财务相关实现,
|
||||
> 只能以本文件为业务口径。其他旧分析只作为历史资料,不再具备设计或验收效力。
|
||||
@@ -1300,6 +1300,7 @@ pending 角色快照、`role_identity_source` 与 `verification_basis`。
|
||||
`pending / assigned` 履约记录,`archived` 不再进入待办投影或阻塞补载体扫描。
|
||||
迁移 `186` 增加 `idx_fulfillments_assigned_carrier_active` 与 `idx_fulfillments_assigned_manual_unconfigured` 热路径部分索引,
|
||||
配合渠道分配同轮挂接 `fulfillment_config_id`、`carrier-dispatch` 直连 `fulfillments` 的两段式有界游标扫描(`carrier_assigned_repair`)与斗鱼后台严格纯读(精确单号未物化时返回只读 `pendingHints`),消除后台超时、`carrier-dispatch` 长查询锁竞争与 `manual` 新单卡在未配置态等待 12–26 分钟的链路断层。
|
||||
迁移 `187` 补齐 `fulfillment_tasks` 回调 JSONB 表达式索引(`affiliate_dash` / `kuaishou_feifei`)、自动发货失败任务窄索引、`fulfillments` 已配人工及自动/工单载体部分索引、`orders` 修剪店铺名倒序索引、`admin_notifications` 待办排序表达式部分索引及 `work_orders` 排行榜覆盖索引;配合 `carrier_dispatch` 有界分页游标与 `runAffiliateFallback` 失败任务反查,消除 15s 语句超时、店铺下拉/通知排序/总榜全表扫描与 `carrier_dispatch` 零异常回绕。
|
||||
迁移 `169` 增加客户游戏角色资料字段(`customer_game_role_name` / `customer_game_role_id` /
|
||||
`customer_game_server_zone`),并允许从工单素材回退合并;当前客户资料要求角色名、UID 和区服三项齐全,
|
||||
其中 `customer_game_role_id` 只校验非空,不校验格式。客户页流程收敛为
|
||||
|
||||
Reference in New Issue
Block a user