sqlExport: Use insert_many()
to bulk insert transactions
This commit is contained in:
parent
d3266a7d7f
commit
e3176cd155
@ -72,8 +72,12 @@ def do_import(config):
|
||||
]
|
||||
)
|
||||
|
||||
for transaction in transactions:
|
||||
Transaction.from_csv_dict(transaction).insert_instance().execute()
|
||||
Transaction.insert_many(
|
||||
[
|
||||
Transaction.from_csv_dict(transaction).__data__
|
||||
for transaction in transactions
|
||||
]
|
||||
).execute()
|
||||
|
||||
# TODO: folders, levels, addons
|
||||
|
||||
|
Reference in New Issue
Block a user