Skip to content

Run import process inside a SQL transaction#45

Open
ittner wants to merge 1 commit intopajowu:masterfrom
ittner:run-import-sttms-inside-transaction
Open

Run import process inside a SQL transaction#45
ittner wants to merge 1 commit intopajowu:masterfrom
ittner:run-import-sttms-inside-transaction

Conversation

@ittner
Copy link
Copy Markdown

@ittner ittner commented Apr 23, 2021

Start a SQL transaction before importing the back and commit it at the
end of the process. This has no much effect when using in-memory
databases, but makes everything really faster when not, as we don't
need to persist every individual statement independently.

Start a SQL transaction before importing the back and commit it at the
end of the process. This has no much effect when using in-memory
databases, but makes everything *really* faster when not, as we don't
need to persist every individual statement independently.
@pajowu
Copy link
Copy Markdown
Owner

pajowu commented Apr 30, 2021

This looks great. I wanted to do that initially but couldn't figure it out properly. I will test this in the next days and hope we can merge that. If this works reliably we can get rid of the in memory db option alltogether 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants