Hi,
https://success.outsystems.com/documentation/11/reference/outsystems_language/data/database_reference/handling_transactions/
So, it says "While processing a web request, OutSystems begins a database transaction on its first access to the database. The transaction is committed before OutSystems sends the response to the user.", but if it's a Server Action, you can imagine that it will be committed in response, but what happens when you process a transaction on a Screen or Client Action?
Will a transaction be started and committed each time an Entity Action is executed?
Thanks
Hi, that means inside Client Action, for each Server Action call, a transaction will start when a Server action called, and end (or commited) when that Server Action returned. If you call many Server Actions, many Transactions will be "generated", and this scenario should be avoided, it's anti-parttern. Please try to wrap relevant Server Actions inside 1 "master" Server Action and call that "master" Server Action only. Hope this helped.