Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(backend): wrap i/o operations in transactions #278

Merged
merged 2 commits into from
May 11, 2023
Merged

Conversation

aymanbagabas
Copy link
Member

when i/o errors, transaction rolls back

@caarlos0
Copy link
Member

might be worth testing if this doesn't lock the entire DB while doing the IO...

might also be good to check if there are transaction limits, timeouts, etc

Base automatically changed from mem-cache to main May 11, 2023 19:38
@aymanbagabas aymanbagabas merged commit 1420502 into main May 11, 2023
@aymanbagabas aymanbagabas deleted the sqlite-tx branch May 11, 2023 19:47
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