In environments where a transactional or read-write cache cannot be used, explicit lock modes should be used to guarantee the use of non-stale data.
The LockModes to look at are:
LockMode.READ: Bypass both levels of the cache
LockMode.UPDGRADE: Bypass both levels of the cache, do a version check, and obtain a database-level pessimistic upgrade lock
Description
In environments where a transactional or read-write cache cannot be used, explicit lock modes should be used to guarantee the use of non-stale data.
The LockModes to look at are:
LockMode.READ: Bypass both levels of the cache
LockMode.UPDGRADE: Bypass both levels of the cache, do a version check, and obtain a database-level pessimistic upgrade lock