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

Use transactions for database dump restore #112

Merged
merged 11 commits into from
Jul 22, 2024

Conversation

campos20
Copy link
Member

@campos20 campos20 commented Jul 17, 2024

This aims to fix an issue we are having. The database dump update is stuck, even considering that the process is still running.

I think I did not know about transactions when I coded the scripts part. This project was using the strange approach of creating a temp database, performing restoring the dump on it, then rename columns from the temp database to the wca_development one. The issue I was trying to solve when I coded this is the same that we solve when using transactions. So, we are removing the creative way of doing this and we are starting to use transactions.

@campos20
Copy link
Member Author

Tests are breaking due to a unrelated code. The change to fix these tests were introduced in #113

@campos20
Copy link
Member Author

This code also includes #113.

@campos20 campos20 merged commit 0e5eff2 into thewca:main Jul 22, 2024
1 check passed
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.

1 participant