fix(线上代发价格): 店铺单号按字符串查聚水潭订单,修复订单关联走全表扫描 #868
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/limeng-online-daifa-soid-index"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
纯数字店铺单号作数组键被 PHP 转成 int,绑定到 varchar 的 so_id 上触发隐式类型转换、索引失效:
淘系订单表(500 万行)一次 IN 查询 118 秒,100 行订单关联 151 秒,页面和成本核查预计算都卡死。
loadJstOrders 统一把 so_id 转成字符串再查。
涉及:只读查询;不涉及迁移、权限和上游写入。
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01VANWYsNUbu2piMtCKymoyd
验证:相关单元/功能测试已在最新 main 上通过(发布脚本自动执行)。
🤖 Generated with Claude Code