简体   繁体   中英

what is the purpose of __STAMP column in 4D?

There are two columns which are __KEY and __STAMP using by 4D. __KEY is for Primary key.

Would like to understand the usage and behavior of having the __STAMP column in 4D?

__STAMP is used in Wakanda's optimistic record locking. See Locking Entities in the Wakanda docs.

Both _KEY and _STAMP are used internally for Optimistic locking in 4D ORDA. _STAMP stores the timestamp when the entity is saved. The value increments whenever the entity is saved to the disk.4D tracks and updates this column automatically. It should not be modified. If needed, you can manually check and track the value of _STAMP to implement manual locking.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM