Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: snbkumarHi Tony and Jones,
Thanks for your inputs. We need a solution for below situation.
6 DB Execute nodes need to be treated as a single transaction and be committed or rolled back as a whole.
First 4 update table1's records with different status values.
The 5th one is clock synced with the 4 nodes and it updates another status in table1 once the 4 nodes complete.
The 6th node runs in parallel to these 5 and updates another table2.
Issue: In a normal situation this runs fine, but when one of the 4 nodes fail, the 6th node which runs in parallel could update table2 which is not desirable.
For now we are thinking of 2 options:
1. Clock sync 5th node with the 6th node so that node6 executes only after node5.
2. Have all the DML in a single node and handle them with a PL/SQL approach
Both have their own drawbacks.
Can you please provide an optimal solution that is also good from a performance perspective? Because clock syncs will serialize the insertions.
Thanks,
Bharath