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
Currently, we catch individual DB call errors, when we work on a business logic that requires more than one insert or update call, which may lead to partial database data.
elraphty
changed the title
Improve All Business Logics That Make More Than One DB Calls Using Transactions
Improve All Business Logics That Make More Than One DB Calls To Avoid Partial Data Insertions, Using DB Transactions.
Jun 10, 2024
Context
Currently, we catch individual DB call errors, when we work on a business logic that requires more than one insert or update call, which may lead to partial database data.
e.g
we return out of process if any error is found.
Design
We want to use database transactions to perform such chain database calls, to avoid any partial data in the database.
These are the important business logic to look at:
Acceptance Criteria
Here is an example backend test
The text was updated successfully, but these errors were encountered: