QuestionQ25

VerifiedPerformance Tuning

Universal Containers has a roll-up summary field on Account that calculates the number of contacts related to an account. During the account load, Salesforce throws an UNABLE_TO_LOCK_ROW error.

Which solution should a data architect recommend to resolve this error?

Explanation

Changes to Contact records can lock the parent Account while Salesforce maintains the Account roll-up summary. Parallel bulk-processing batches that contain contacts related to the same Account can therefore contend for the same parent-record lock. Serial processing prevents simultaneous batches from acquiring that lock, and smaller batches reduce transaction duration and lock contention.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!