Salesforce Decode
Salesforcedecode
Apex questionsQuestion 79 of 179
ApexAdvancedbatchperformancedml

Resolve row lock contention when parallel batches update same parent Accounts

Scenario

Two parallel batch jobs updating Account.Last_Activity_Date__c from Task and Event triggers cause UNABLE_TO_LOCK_ROW errors during business hours.

Answer it out loud first

Serious prep means attempting before reading. Take two minutes to structure your answer, then compare.