perf: backfill全速200ms/批(PG无锁冲突)

This commit is contained in:
root 2026-02-27 17:04:36 +00:00
parent 61287657df
commit 55422b0ae0

View File

@ -27,7 +27,7 @@ logger = logging.getLogger("backfill")
BINANCE_FAPI = "https://fapi.binance.com/fapi/v1" BINANCE_FAPI = "https://fapi.binance.com/fapi/v1"
HEADERS = {"User-Agent": "Mozilla/5.0 ArbitrageEngine/backfill"} HEADERS = {"User-Agent": "Mozilla/5.0 ArbitrageEngine/backfill"}
BATCH_SIZE = 1000 BATCH_SIZE = 1000
SLEEP_MS = 2000 SLEEP_MS = 200 # PG并发无锁全速拉取
# ─── DB helpers ────────────────────────────────────────────────── # ─── DB helpers ──────────────────────────────────────────────────