Deadlock question
patrick_j
Posts: 13 Bronze 2
I am getting random deadlocking when Substitution rules are running within 1 table such as, "Transaction (Process ID 77) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction." The run then stops.
The most recent case was in table ClientEmployer. ID 09-0070 was updating PCode from dataset Postcodes +Prov +Town CND, while 09-0071 was updating Address from dataset Street Addresses.
Should I reduce to 1 Worker to avoid this?
I dont' see any obvious dependency between these rules unless any operation within the same table should be dependent on previous ones completing. Please advise.
Tagged:
Best Answer
-
PlantBasedSQL Posts: 187 Gold 4Thanks @patrick_j - As of Data Masker v7 I would argue that all fields on a table that need substituting could feasibly be in the same substitution rule. The logic has been improved tremendously so that having slightly more columns per rule makes less difference and makes the rules easier to manage!
Answers
Very quick question though - is there any reason why you don't just have the SAME Substitution rule updating both the PCode and Address columns, rather than doing it in 2 individual rules?
Thank you very much - as always let me know if there's anything I can do to help!