增加数据库慢查询观测与索引防线并收窄打手拼单分页查询

This commit is contained in:
yml2213
2026-08-22 18:40:11 +08:00
parent 0dfe363d35
commit 1b8e02dd17
16 changed files with 221 additions and 7 deletions
@@ -62,6 +62,12 @@ export function validateRuntimeConfig(
min: 1,
},
)
requireOptionalInteger(
issues,
'database.slowQueryThresholdMs',
config.database?.slowQueryThresholdMs,
{ min: 0 },
)
requireInteger(issues, 'storage.maxUploadSizeMb', config.storage?.maxUploadSizeMb, {
min: 1,
max: 100,