sqlExport: Use insert_many() to bulk insert transactions

This commit is contained in:
Adam Goldsmith 2023-09-22 22:26:56 -04:00
parent d3266a7d7f
commit e3176cd155

View File

@ -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