fix(ops): 降低 SQL/请求日志噪声并改善 500 恢复
SQL 回显与 DEBUG 解耦;API 请求日志按字节截断并失败降级;可恢复初始化错误不永久锁死,500 页可重试;修复生产任务 in_ 多余 subquery;补充本地登录态清理页。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
d7611a1bd6
commit
f50c55f7b6
8 files changed
+112
-12
No files matched your search
@@ -8,7 +8,7 @@ engine = create_engine(
|
||||
settings.DATABASE_URL,
|
||||
pool_pre_ping=True,
|
||||
pool_recycle=3600,
|
||||
echo=settings.DEBUG,
|
||||
echo=settings.SQLALCHEMY_ECHO,
|
||||
)
|
||||
|
||||
# 避免 commit 后 ORM 实例自动过期,导致读取字段时回表 SELECT(高频接口会显著拖慢)
|
||||
|
||||
Reference in new issue
Block a user