FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Salesforce Record Locking and Concurrency – Salesforce Things You should Know
How-ToMachine Learning

Salesforce Record Locking and Concurrency – Salesforce Things You should Know

via Dev.toKamal Thakur3h ago

If you build on Salesforce long enough, you will hit a lock. This post explains how Salesforce Record Locking and Concurrency work, why you see UNABLE_TO_LOCK_ROW, and how to write code that behaves correctly under load. Why Salesforce locks records In a multi user system, two updates on the same record at the same time can corrupt data. To prevent that, Salesforce uses exclusive row locks: When a transaction modifies a record, it takes a lock and holds it until the transaction ends. Another transaction that tries to update the same record waits for about 10 seconds. If the lock is not released in time, Salesforce throws UNABLE_TO_LOCK_ROW. Reads operations are different. A concurrent read operation sees the last committed version, not the in progress changes. That is normal isolation, meaning uncommitted changes are never visible to other transactions. Reads vs writes in plain language Writes (DML) take a lock. Other writers wait. Reads (plain SOQL) do not lock and do not wait. They r

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

#05 Frozen Pipes
How-To

#05 Frozen Pipes

Dev.to • 4h ago

Replace Doom Scrolling With Intentional Reading
How-To

Replace Doom Scrolling With Intentional Reading

Dev.to • 7h ago

Web Color "Wheel" Chart
How-To

Web Color "Wheel" Chart

Dev.to • 11h ago

Im looking for indie apps and tools built by solo developers, their stories and perspectives for a newsletter I’m starting. If you know a solo maker or use an overlooked gem built by one please let me know! 🙏
How-To

Im looking for indie apps and tools built by solo developers, their stories and perspectives for a newsletter I’m starting. If you know a solo maker or use an overlooked gem built by one please let me know! 🙏

Dev.to • 23h ago

Building a DIY OpenClaw
How-To

Building a DIY OpenClaw

Lobsters • 1d ago

Discover More Articles