root
|
91ed44ad9f
|
refactor: unify all DB connections to Cloud SQL, remove dual-write and SQLite code
|
2026-03-03 12:30:01 +00:00 |
|
root
|
4f54e36d1a
|
feat: dual-write agg_trades to local PG + Cloud SQL
- db.py: add Cloud SQL connection pool (CLOUD_PG_ENABLED env toggle)
- agg_trades_collector: flush_buffer writes to both local and cloud
- Cloud SQL write failure is non-fatal (log warning, don't block local)
|
2026-03-01 07:16:03 +00:00 |
|
root
|
0ac2225979
|
feat: add XRP and SOL symbols (4 coins total)
|
2026-02-28 10:11:05 +00:00 |
|
root
|
4168c1dd88
|
refactor: SQLite→PostgreSQL migration - db.py连接层 + main/collector/signal-engine/backfill全部改PG
Phase 1: 核心数据表(agg_trades/rate_snapshots/signal*)迁PG
auth.py暂保留SQLite(低频,不影响性能)
- db.py: psycopg2同步池 + asyncpg异步池 + PG schema + 分区管理
- main.py: 全部改asyncpg查询
- collector: psycopg2 + execute_values批量写入
- signal-engine: psycopg2同步读写
- backfill: psycopg2 + ON CONFLICT DO NOTHING
|
2026-02-27 16:15:16 +00:00 |
|
root
|
7e38b24fa8
|
feat: V3.0 aggTrades collector - WS+REST补洞+巡检+按月分表+查询API
|
2026-02-27 11:29:16 +00:00 |
|