From 7c5b588306adf254fe58fc756c0f13e9cf894c24 Mon Sep 17 00:00:00 2001 From: sion Date: Sun, 5 Apr 2026 23:37:38 +0800 Subject: [PATCH] 111 --- sql/patch_dashboard_indexes.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 sql/patch_dashboard_indexes.sql diff --git a/sql/patch_dashboard_indexes.sql b/sql/patch_dashboard_indexes.sql new file mode 100644 index 0000000..06f65c5 --- /dev/null +++ b/sql/patch_dashboard_indexes.sql @@ -0,0 +1,4 @@ +-- 看板性能优化:为 order_fund 添加组合索引 +-- 用于聚合查询(充值/提现统计、月度趋势) +ALTER TABLE order_fund ADD INDEX idx_type_status (type, status); +ALTER TABLE order_fund ADD INDEX idx_type_status_time (type, status, create_time);