Closed mastercoms closed 1 year ago
@Transactional()
decorator is used to group multiple database operations into one. It acts like Django's @transaction.atomic
. If you look at the source of the decorator, you can see that it executes commit or rollback depending on the situation. Therefore, users do not have to use explicit commit and rollback.
I get that, but I also see that it has a propagation parameter which I did not understand, it's an enum of REQUIRED and REQUIRED_NEW. What does this do, when should I use one or the other?
I'm sorry for confusing. That parameter has been removed in the latest commit.
I wasn't able to find usages of it, what is its intended purpose?