You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 22, 2018. It is now read-only.
Maybe I'm wrong but I couldn't find in code where transaction starts. It's important because we never will know where and why Exception could raise. So each actions which applies change to database must be started with initializing transaction and if something went wrong we can roll-back changes to previous state. In this way we are preventing situation when changes to database were partial.
The text was updated successfully, but these errors were encountered:
Hi Alex
I've thought about this angle and the issue is mainly with mysql as table modifications are not atomic and are not part of the transaction. So transactions can only work on instances where there are no ALTER TABLE commands which I think is quite rare and if I add them you could end up with a greater mess. Other databases (e.g. Postgre) don't have this issue but we're not using it at all so we don't even have a driver for that.
Maybe I'm wrong but I couldn't find in code where transaction starts. It's important because we never will know where and why Exception could raise. So each actions which applies change to database must be started with initializing transaction and if something went wrong we can roll-back changes to previous state. In this way we are preventing situation when changes to database were partial.
The text was updated successfully, but these errors were encountered: