Databases
Optimistic locking: detect overwrites with a version column
Optimistic locking assumes conflicts are uncommon, so it does not block other users when data is read. At save time, a conditional UPDATE checks whether the version originally read is still current. If it changed, the application reports a conflict instead of silently overwriting newer data. This is useful when several people may edit the same record, but the application and database must still define conflict resolution and protection for rules spanning multiple rows. [SQLAlchemy 2.0: version counters](https://docs.sqlalchemy.org/en/20/orm/versioning.html) · [EF Core: handling concurrency conflicts](https://learn.microsoft.com/en-us/ef/core/saving/concurrency)