Priority Property (JRO)

Jet Replication Objects

Priority Property

       

Specifies the relative priority of the replica for use during conflict resolution.

Return Values

Returns a Long value from 0 to 100 that indicates the priority. Priority is read-only.

Remarks

The algorithm for resolving conflicts is as follows:

  • The replica with the highest priority wins.

  • If priorities are equal, the replica with the lowest ReplicaId wins.

In previous versions, the conflict resolution algorithm was based on the replica with the most changes in the row and the second rule listed above. To ensure compatibility when older databases are converted, the priority for all replicas are equal to 90.

For global replicas, the default priority is 90 percent of the parent replica's priority. Also, the valid values for a global replica may be further restricted. If the user is the database administrator, the entire range is valid. Otherwise, the maximum value for priority is 90 percent of the parent replica's priority. For local and anonymous replicas, the value will always be 0 and cannot be changed. This value is forced with the creation of the replica and any other value is ignored.

This property can only be read if the database is replicable. An error will occur if the ReplicaType is jrRepTypeNotReplicable and the user attempts to read this property.