Add PostgreSQL production backend to eliminate SQLite lock contention.
Support DATABASE_URL with connection pooling, pg_dump backups, SQLite migration script, and deploy_postgres.sh with docs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -53,3 +53,9 @@ MAX_ACTIVE_POSITIONS=1
|
||||
RISK_DAILY_POSITION_LIMIT=5
|
||||
RISK_DAILY_TRADING_RISK_PCT=2
|
||||
TRADING_DAY_RESET_HOUR=8
|
||||
|
||||
# —— 数据库(生产推荐 PostgreSQL,见 docs/POSTGRES.md)——
|
||||
# 未配置 DATABASE_URL 时使用本地 SQLite futures.db
|
||||
# DATABASE_URL=postgresql://qihuo:your_password@127.0.0.1:5432/qihuo
|
||||
# PG_POOL_MIN=2
|
||||
# PG_POOL_MAX=20
|
||||
|
||||
Reference in New Issue
Block a user