dekun
47ee9602d1
Use direct PostgreSQL connections instead of pool to fix init deploy.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-01 08:19:46 +08:00
dekun
a1f22624de
Harden PostgreSQL deploy: auto-rollback on SQL errors, clean DB on migrate.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-01 08:13:51 +08:00
dekun
bc79ad308c
Fix PostgreSQL init_db: rollback after benign schema migration errors.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-01 08:13:14 +08:00
dekun
1b276b5897
Fix PostgreSQL DDL: use single-quoted DEFAULT literals.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-01 08:12:34 +08:00
dekun
52aca456e9
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 >
2026-07-01 08:11:42 +08:00
dekun
508d85a282
Fix SQLite lock errors on /api/stats under concurrent writes.
...
Retry stats cache commits, serialize refresh, and fall back to read-only compute so the stats API does not return 500 when the database is briefly locked.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 12:23:33 +08:00
dekun
ab9987e4c7
Add personal license agreement and rename product section to tradable symbols.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 02:52:45 +08:00
dekun
c302e1f3ca
fix: avoid SQLite lock on fast position poll by skipping DB writes
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 15:14:22 +08:00
dekun
55d95b4c39
进一步修复 SQLite 并发锁冲突,统一连接与重试机制。
...
新增 db_conn 模块、缓存 schema 初始化、positions 页 commit,风控读库自动重试。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 10:30:26 +08:00