From 219fbe2b5f95948875d3c9be13da13f179cdfd2d Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 11 Apr 2019 09:18:41 +0800 Subject: [PATCH] [Fix]close #1569 --- vnpy/app/csv_loader/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/app/csv_loader/engine.py b/vnpy/app/csv_loader/engine.py index 2c384d02..c0547036 100644 --- a/vnpy/app/csv_loader/engine.py +++ b/vnpy/app/csv_loader/engine.py @@ -107,7 +107,7 @@ class CsvLoaderEngine(BaseEngine): # Insert into DB with DB.atomic(): - for batch in chunked(db_bars, 500): + for batch in chunked(db_bars, 50): DbBarData.insert_many(batch).on_conflict_replace().execute() return start, end, count