When several people can modify the same record, the design needs to answer one specific question: what happens if someone saves changes after another person has started editing an earlier version? If the system does not detect this, one update may silently overwrite the other. But if it locks records too early or for too long, it can get in the way of legitimate work.
There is no universal strategy. Optimistic editing lets people work in parallel and checks whether the record has changed when they save. A temporary lock reserves the record for one person for a limited time. The right choice depends on the impact of losing changes, how long the task takes, how often concurrent editing occurs, and whether versions can be compared and reconciled effectively.
What happens when two people edit the same record

Imagine two people open the same record at 10:00. The first changes its status and saves. The second, still seeing the earlier values, edits a note and saves a few minutes later. If each save replaces the entire record, the second operation can erase the status change, even though that person never touched it.
This problem is often called a lost update. It is different from a business rule that prevents an action: here, several people are legitimately working with the same data, and the system needs to coordinate their versions. The risk increases when a form stays open for a long time, fields depend on each other, or the record has operational, financial, or legal consequences.
Before choosing a mechanism, clarify what saving means: does the system send the entire record or only the changed fields? Can it distinguish independent changes? Which pieces of data need to stay together to remain consistent? The answers will show whether detecting an outdated version is enough or whether the record needs to be reserved.
Optimistic editing: detect conflicts when saving
With an optimistic approach, several people can edit at the same time. When someone opens a record, the application keeps a reference to the version they saw, such as a version number or an update timestamp. When they save, it compares that reference with the current version. If the record has changed, the system does not automatically apply an outdated write: it reports the conflict and offers a way forward.
This is a good option when concurrent editing is occasional, changes are usually quick, or users can review differences. It also prevents someone from being blocked because another person left a tab open. The trade-off comes at save time: you need to design a clear resolution experience and protect the data on the server rather than relying on the interface alone.
When a conflict occurs, show understandable actions, not a generic technical error. Depending on the case, the person can load the latest version and reapply their changes, compare both versions, or keep changes to fields that have not changed. If combining changes would be unsafe, offer the option to save a copy or request a review instead of silently deciding which version takes precedence.
Rule of thumb: use optimistic editing when collisions are unlikely and the impact of detecting one later is manageable. Do not confuse it with “last save wins”: that does not resolve the conflict; it only hides it.
Temporary locks: reserve a record without holding it hostage
A temporary lock indicates that someone is editing a record and reduces the chance that another person will change it at the same time. It may be appropriate for long tasks, workflows with many related fields, or data that is difficult to reconcile manually and costly to overwrite. It can also provide operational clarity when people need to know who is working on a record.
Locks create a product and engineering responsibility: handling abandoned sessions. Someone may close their browser, lose their connection, or leave the application open without returning. For that reason, a reservation should expire, renew while there is activity, and be released when the person saves or cancels. Set the duration to fit the task; a short limit can interrupt legitimate work, while a long one can monopolize the record.
Show who holds the reservation and, when useful, how long they have held it. Explain what others can do: view the record, wait, request access, or work on a copy. Make sure the lock does not look like an application failure, and provide a safe way to recover abandoned records. If people can force a lock to be released, make the risk clear and log that decision so it does not become an unnoticed overwrite.
A lock that exists only in the interface does not protect the data. The server must check the reservation for every write operation, including renewal and release. It must also account for an expired session attempting to save after someone else has acquired the record.
How to choose between conflict detection and locking
Assess the specific task, not just the “record” entity. One record may include low-risk fields and others that require strict coordination. Use these criteria to guide your decision:
- Impact of an overwrite: if losing a change could cause serious or difficult-to-reverse errors, consider locking or requiring an explicit resolution.
- Task duration: for quick edits, a lock may add more friction than protection. For longer work, a visible reservation can help, provided it expires and can be recovered.
- Frequency of concurrent editing: if collisions are rare, optimistic detection usually avoids unnecessary reservations. If they happen repeatedly, consider locks or field-level editing.
- Ability to compare: if the system can show understandable differences and combine independent changes, resolving conflicts at save time becomes more practical.
- Reversibility and audit history: a recoverable history lowers the cost of correcting mistakes, but it does not replace prevention when an overwrite has immediate consequences.
Concurrency does not always require choosing a single mechanism for the entire application. You can use optimistic editing for notes or descriptions and temporarily reserve records during a complex operation. Keep the rules consistent and visible; mixing behaviors without explaining them can surprise people.
Show who changed the record and design the resolution
People need context to resolve a conflict. Tell them that the record has changed since they opened it and, if the information is available, show who modified it and when. Do not present the person's identity as a way to assign blame: the purpose is to help people coordinate and decide what to do.
Compare the relevant values in the version they opened with those in the current version. Point out which fields changed and keep their unsaved local edits separate. If both users changed the same field, do not automatically choose one version unless there is an explicit, safe rule. Allow people to discard or reapply changes, or request a review; for interdependent changes, compare the set of changes rather than isolated fields.
A sound resolution process also needs a second check at confirmation. The record may change again while someone is reviewing the differences. If the current version no longer matches the one shown in the comparison, report the new change and ask them to review again. This prevents people from resolving a conflict against a snapshot that has already become outdated.
Hypothetical examples and signs that the strategy needs review

In an incident management tool, several people might add observations while one person changes the priority. If fields are saved independently and the system compares versions, optimistic editing can keep work moving without locking the entire record. In a complex form that several teams review over an extended period, a temporary reservation may be easier to understand, as long as others can view the record and know how to request access.
These are hypothetical examples, not rules. Track usage signals: detected conflicts, rejected saves, expired reservations, access attempts, and recovery operations. Also investigate reports of lost changes, since they can indicate missing protection even when no technical error appears.
Review the approach if collisions increase, people copy data outside the system to avoid locks, or reservations are frequently abandoned. Test changes with representative tasks and confirm that recovery options are clear. The goal is not to eliminate all concurrent editing, but to make the risk visible and provide a safe way forward before a valid change disappears.
