商品利润镜像:长单号只查线上订单号,内部订单号补索引 #472

Merged
renshen merged 1 commits from fix/renshen-afs-internal-index into main 2026-10-23 14:52:39 +08:00
Collaborator

按单号查询时,19 位线上单号会再对内部订单号列做 like 前缀匹配,而该列没有索引,323 万行全表扫描耗时 67 秒导致页面 504。改为长单号只查线上订单号,内部订单号补索引,短单号仍两列都查。

按单号查询时,19 位线上单号会再对内部订单号列做 like 前缀匹配,而该列没有索引,323 万行全表扫描耗时 67 秒导致页面 504。改为长单号只查线上订单号,内部订单号补索引,短单号仍两列都查。
renshen added 1 commit 2026-10-23 14:52:37 +08:00
- 页面按单号查询时,19 位线上单号不再用内部订单号列做前缀匹配(该列无索引会全表扫描 67 秒)
- 内部订单号补索引,短单号仍两列都查
renshen merged commit f61fbb5028 into main 2026-10-23 14:52:39 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WuYongJie/CaiWuXiTong#472
No description provided.