[Fix]close #1569
This commit is contained in:
parent
1a79ba37db
commit
219fbe2b5f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user