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
Using the soqlDatatable to mass edit a set of child records with a common parent can cause an UNABLE_TO_LOCK_ROW error especially when there is any automation triggered by the update of the parent record. Seems like the issue could be that the multi-line edit uses updateRecord and processes each edit in a separate transaction instead of in a batch.
The text was updated successfully, but these errors were encountered:
Ah this is a very fair point on the potentially unoptimized design. I’ve leaned pretty hard into “following platform” (I.e use LDS even for ILE since that was straight in the docs).
IMO, if the datatable docs uses LDS for updating one would assume they would take care of concerns like chunking.
The other solve would be to create a fork in the update DML (thus, a configurable option somewhere) to use LDS vs Apex.
For now, keeping this open for visibility but no action yet.
Using the soqlDatatable to mass edit a set of child records with a common parent can cause an UNABLE_TO_LOCK_ROW error especially when there is any automation triggered by the update of the parent record. Seems like the issue could be that the multi-line edit uses updateRecord and processes each edit in a separate transaction instead of in a batch.
The text was updated successfully, but these errors were encountered: