Optimistic lock

This document explains the difference between how the management of version 6 handles concurrency conflicts when updating an entity instance, and what has been done in version 7.

Pessimistic lock in object management

In version 6, the object management uses a pessimistic locking method. The principle is the following:

This type of locking has the following issues:

Optimistic lock in Version 7 native CRUD operations

In version 7, the CRUD operations on a class, which replaced the object management, implement another optimistic method. The main principles are the following:

When a conflict occurs in this system, the performed input is lost and can be seen as a disadvantage. However, it is very rare that two users would make substantial modifications on the same record. The probability of such a conflict is smaller than the probability of unreal conflicts between a user that reads a record and a user that updates it.

Advantages: