修复支付宝账单翻页重复全表计数 #131

Merged
WuYongJie merged 1 commits from fix/WuYongJie-alipay-pagination-count into main 2026-09-08 21:46:34 +08:00
Owner

无筛选分页复用镜像同步完成事务保存的准确 mirror_row_count,避免每页扫描千万级 ID 索引。筛选、同步中/失败、统计缺失时仍精确计数;金额汇总不变,无迁移。8 tests / 43 assertions 通过。生产只读新代码实测首页 1.498 秒、第二页 0.495 秒,均无全表 COUNT;原路径分别 40.32/37.88 秒。

无筛选分页复用镜像同步完成事务保存的准确 mirror_row_count,避免每页扫描千万级 ID 索引。筛选、同步中/失败、统计缺失时仍精确计数;金额汇总不变,无迁移。8 tests / 43 assertions 通过。生产只读新代码实测首页 1.498 秒、第二页 0.495 秒,均无全表 COUNT;原路径分别 40.32/37.88 秒。
WuYongJie added 1 commit 2026-09-08 21:46:12 +08:00
WuYongJie merged commit 230962f6a3 into main 2026-09-08 21:46:34 +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#131
No description provided.