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

separate read and write db in prune() #75

Merged
merged 1 commit into from
Dec 30, 2022

Conversation

missytake
Copy link
Contributor

fixes #72, alternative to #73.

This PR takes care that the write transaction of prune() is as short-lived as possible. It avoids touching the db.py complexity, as I don't fully understand the difference of transactions and connections and what @hpk42 had in mind when he wrote that (note that it was before mailcow times).

@link2xt what do you think?

@missytake
Copy link
Contributor Author

Hm, tox is failing, I'll investigate

@missytake
Copy link
Contributor Author

Nevermind, just some cleanup on x.testrun.org failed previously. tbh, something is broken on dc.develcow.de, the mailcow web UI doesn't show me all users anymore. But the API still works. I'll investigate some day.

@missytake missytake merged commit 0933d33 into master Dec 30, 2022
@missytake missytake deleted the separate-read-and-write-in-prune branch December 30, 2022 21:52
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.

Do not hold write transaction in prune() loop
2 participants