Glossary updtick
To manage optimistic update concurrency control, Version 7 of the Sage X3 engine introduced a new concept called UpdTick. UpdTick, which means update ticks.
It is an additional numeric column added automatically in any database table at dictionary validation. This column is used to store a revision number on every database line. The syntax to access this property is [abbreviation]UpdTick, where abbreviation is the abbreviation of the table.
The following are the Principles of Management for this column:
UpdTick has a value of 1.UpdTick is incremented by 1.The management of UpdTick is implemented through a database trigger that is created on every table. The development partner does not need to manage its value.
When an update operation is managed from a representation, the underlying supervisor code does the following:
UpdTick value for every class or child class instance, when the working copy is created before it is sent to the user to modify the document.UpdTick value did not change for any line modified. Otherwise, the user will receive an error message that someone previously modified the data. This is also tested on details lines when an update is done on a header/line document. In this case, the modification can also be a deletion. To support this function, the Sage X3 engine includes a set of new instructions:
UpdTick value is the correct one.UpdTick value is the correct one.Compared to the techniques used in version 6, this current management mode offers the following advantages:
UpdTick is completely managed by the supervisor code.