Apply changes in source order across tables¶
Who needs this
Only when the destination needs a transaction's changes to different tables in the order they were made at the source: foreign keys on the destination tables require the changes in a specific order, or triggers or other logic on the destination depend on the exact order of the source changes. Otherwise leave it off: the Capture Agent keeps the order in an extra staging table, pruned with the transactions.
Stelo Capture always keeps changes consistent at transaction boundaries, and keeps the order of the changes to each
table. By default, though, a transaction's changes to different tables are applied table by table. The Capture Agent
property useTxSequence also records the order across tables, so the changes can be applied as they were made at the
source.
Turn it on¶
useTxSequence is an advanced property: turn it on with Stelo Support. On the agent's
Configuration tab, add useTxSequence with the value true and click Save. The agent
restarts.
Then set the incremental group's apply method to Sequence, which applies the changes across tables in that order (see Choosing the apply method).
Example¶
A single transaction updates table A, then B, then A, then B.
useTxSequence |
Order applied at the destination |
|---|---|
false (default) |
A, A, B, B, commit |
true |
A, B, A, B, commit |