company logo

Object space versioning modes

In order to create independent versions for object spaces in a database, versioning mode might be set to Object_Space ( Database ::versionMode( Object_Space ) ).This allows defining independent version slices for each object space. Since version slices are not synchronized, one cannot roll back versions when running the database in this versioning mode.

For being able to roll back object versions, versioning mode Consistent has to be set. This versioning mode synchronizes version slices for all object spaces in the database, which allows rolling back the database to an earlier version.

The versioning mode will be set implicitly, when calling ObjectSpace ::createDataVersion() . When calling the function the first time for the root object space (database), the versioning mode is set to Consistent . When calling the function the first time for a subordinated object space, the versioning mode is set to Object_Space . After defining the version mode, Consistent versioning cannot be activated anymore for the database.