Transaction control

Hi! I have a general question about transaction control for the DBMS in Appfarm. I’m wondering whether there is a built-in mechanism for defining a “transaction”, which is a single unit of modification to data. So what this means is that it can consist of multiple persist actions, but if any one of the actions fails, all the changes performed within this “transaction” will be rolled back. The only way I can think of now is to manually add try-catch blocks to subsequent persist actions and try to undo the changes made by earlier persist actions, but this seems a rather cumbersome approach.

1 Like

Hi @user2 ,

Thank you for your request! You are correct that currently, the only approach is to manually add try-catch blocks. I have created a challenge for this as a feature request.