Competing Updates - Race Conditions #272
-
I have an application that dispatches multiple calls from an LWC based on user interaction. This can cause Child records to be updated sporadically/simultaneously (different children of the same parent. This is causing issues the MAX/MIN date rollups on the parent are incorrect. I think the solution would be to force the rollup to do a full query/recalculation of all the children each time. Has anyone encountered something like this? It would also potentially be interesting if there was a way to 'debounce' the logic so the roll ups ran X seconds/min after all the children stopped being edited. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@maxwellmstein I'm curious - do you have |
Beta Was this translation helpful? Give feedback.
@maxwellmstein I'm curious - do you have
Should Run Single Records Synchronously
checked off on the Org Default Rollup Control CMDT record? I have had others report this issue, and this was the fix for datatables / records being updated through LWC'supdateRecord
API. Let me know!