优化后台任务与订单按订单号搜索性能

This commit is contained in:
yml2213
2026-09-04 21:58:44 +08:00
parent 84a8f138d4
commit 4c6c53d818
6 changed files with 167 additions and 45 deletions
+9
View File
@@ -75,6 +75,15 @@ const checks: Array<{
"material_json->'collect'->'fields'->>'gameId'",
],
},
{
name: '任务与订单平台订单号检索索引',
file: path.join(BACKEND_ROOT, 'src/db/migrations/074_admin_order_and_task_lookup_indexes.sql'),
patterns: [
'idx_fulfillment_tasks_platform_order_id',
'idx_fulfillment_tasks_task_no_pattern',
'idx_orders_platform_order_id',
],
},
]
const failures: string[] = []