4 Commits

Author SHA1 Message Date
zhx
959ce54750 fix: 治理线上 MySQL CPU 波动的两个热点查询
- backfill-last7 的报表用户集合改从 wallet_accounts(7千行)取,
  替代每10分钟对千万级 wallet_entries 做资产全量 DISTINCT 扫描
 (线上等价性已核验:旧集合 4907 人 ⊆ 新集合 4908 人)
- lucky_gift_outbox 补两个无 app_code 前缀的 claim 索引,
  消除 worker 每秒空轮询的全索引扫描+filesort(线上已手工应用)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-10 16:10:57 +08:00
zhx
ba35148c94 Fix lucky gift pool import upsert 2026-07-08 22:43:08 +08:00
zhx
c27947fd05 Fix lucky gift import migration database context 2026-07-08 22:41:36 +08:00
zhx
8affe63f6a Split lucky gift service and ops center 2026-07-08 22:30:46 +08:00