Commit Graph

4 Commits

Author SHA1 Message Date
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
23c7597a40 fix: backfill sleep 2s per batch to avoid SQLite WAL lock contention 2026-02-27 15:44:43 +00:00
root
3e630166b4 fix: backfill meta update - handle existing rows with NOT NULL last_agg_id 2026-02-27 15:03:24 +00:00
root
009f114e4d feat: backfill_agg_trades.py - historical aggTrades REST backfill with rate limiting, continuity check 2026-02-27 15:01:55 +00:00