perf(cost-center): 建索引后立即刷新统计信息
This commit is contained in:
@@ -17,3 +17,9 @@ COMMENT ON INDEX idx_order_items_unmapped_mode IS
|
||||
'成本中心总览:按履约方式统计未归一订单项,避免全表扫 order_items';
|
||||
COMMENT ON INDEX idx_fulfillment_tasks_affiliate_recent IS
|
||||
'自动发货任务 30 天聚合:只索引 affiliate_dash,减少商品列表聚合扫描';
|
||||
|
||||
-- 新索引建好后立刻更新统计信息,避免参数化查询在旧统计下继续选全表扫描。
|
||||
ANALYZE order_items;
|
||||
ANALYZE product_catalog;
|
||||
ANALYZE cost_exceptions;
|
||||
ANALYZE fulfillment_tasks;
|
||||
|
||||
Reference in New Issue
Block a user