perf: 清理无界缓存、合并收益走势查询、补齐组合索引并优化前端定时器/图片加载
- 移除只写不读的 verifyCodeCache(无界内存增长) - 大神收益走势由 20 次逐日/逐周/逐月查询改为 3 次 GROUP BY 聚合 - 派单池地理编码改为并行,避免串行等待外部接口 - 补齐 orders/activities/participants/user_notifications/finance/withdrawals/posts 组合索引;修复 withdrawals 使用不存在 created_at 的失效索引 - 数据库连接池支持 MYSQL_CONNECTION_LIMIT/MYSQL_QUEUE_LIMIT - 首页/弹窗定时器卸载清理,活动列表参与者按活动 id 查询,大厅组局按页取数,图片 lazy-load - 121 套件/792 用例全绿;已部署并验证新索引与 9ms 走势查询
这个提交包含在:
@@ -20,7 +20,7 @@ describe('第一百批系统告警与后台审计', () => {
|
||||
it('告警与审计表必须落库,并补充巡检所需索引', () => {
|
||||
expect(mysql).toContain('CREATE TABLE IF NOT EXISTS system_alerts');
|
||||
expect(mysql).toContain('CREATE TABLE IF NOT EXISTS admin_audit_logs');
|
||||
expect(mysql).toContain("['withdrawals', 'idx_wd_status_created'");
|
||||
expect(mysql).toContain("['withdrawals', 'idx_wd_status_apply'");
|
||||
expect(mysql).toContain("['payment_intents', 'idx_pi_status_created'");
|
||||
});
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户