This commit is contained in:
vn.py 2019-04-11 09:18:41 +08:00
parent 1a79ba37db
commit 219fbe2b5f

View File

@ -107,7 +107,7 @@ class CsvLoaderEngine(BaseEngine):
# Insert into DB # Insert into DB
with DB.atomic(): 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() DbBarData.insert_many(batch).on_conflict_replace().execute()
return start, end, count return start, end, count