Hi Everyone,
In some of the find methods of tables I see selectLocked method as shown following code:
I searched for it but not got enough information. can you please tell whether it is also used for caching or some other purpose.
salesTable.selectLocked (_forUpdate);
select firstonly salesTable
where salesTable.SalesId == salesId;
I see some where Caching type NotInTTS written as following:
Not in TTS:
All successful caching key selects are cached.
When in a transaction (after ttsBegin), no caches made outside the transaction are used. When inside a transaction, the record is read once from database and subsequently from cache. The record is select-locked when read in a transaction, which ensures that the record cached is not updated while the transaction is active.
Thanks