From 94cf6cdc697014bbffdbf16d18f71d2f89b50ee6 Mon Sep 17 00:00:00 2001 From: xcbyy <2578898740@qq.com> Date: Fri, 23 Oct 2026 15:31:37 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=B8=85=E7=90=86=E6=97=A0=E7=95=8C?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E3=80=81=E5=90=88=E5=B9=B6=E6=94=B6=E7=9B=8A?= =?UTF-8?q?=E8=B5=B0=E5=8A=BF=E6=9F=A5=E8=AF=A2=E3=80=81=E8=A1=A5=E9=BD=90?= =?UTF-8?q?=E7=BB=84=E5=90=88=E7=B4=A2=E5=BC=95=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=AE=9A=E6=97=B6=E5=99=A8/=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除只写不读的 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 走势查询 --- pwuniapp/components/HomePopupModal.vue | 13 +- pwuniapp/pages/community/index.vue | 1 + pwuniapp/pages/expert/hall.vue | 5 +- pwuniapp/pages/index/index.vue | 11 +- server/src/db/mysql.ts | 17 ++- server/src/db/repository.ts | 162 +++++++++++------------ server/src/index.ts | 10 +- server/tests/client-features.spec.ts | 3 +- server/tests/performance.spec.ts | 63 +++++++++ server/tests/system-alerts-audit.spec.ts | 2 +- 10 files changed, 187 insertions(+), 100 deletions(-) create mode 100644 server/tests/performance.spec.ts diff --git a/pwuniapp/components/HomePopupModal.vue b/pwuniapp/components/HomePopupModal.vue index cba4c15..c2f55c7 100644 --- a/pwuniapp/components/HomePopupModal.vue +++ b/pwuniapp/components/HomePopupModal.vue @@ -29,12 +29,13 @@