Universal Containers (UC) owns a complex Salesforce org with many Apex classes, triggers, and automated processes that will modify records if available. UC has identified that, in its current development state, UC runs change of encountering race condition on the same record.
What should a data architect recommend to guarantee that records are not being updated at the same time?
- Embed the keywords FOR UPDATE after SOQL statements.
- Disable classes or triggers that have the potential to obtain thesame record.
- Migrate programmatic logic to processes and flows.
- Refactor or optimize classes and trigger for maximum CPU performance.
Reveal Solution Next Question