Previous Topic

Next Topic

Book Contents

Book Index

Aid resolving the conflict

List Fields has two small tools to aid you when resolving replication- or save conflicts. Right-click on the document-column headers (the column headers with the names Document 01 (Winner), Document 02 (Looser) etc.)to see the document context menu:

The menu items are:

See Also

How Lotus Notes treat replication or save conflicts

Information about replication conflicts - and the current status of the selected document

Select one of the following actions

How to avoid replication or save conflicts

Replication or Save conflicts occur when the same document has been edited multiple places at the same time.

Avoiding replication or save conflicts can be a daunting task, due to the disconnected nature of Notes databases. We divide the task of avoiding such conflicts in two:

  1. If a database is placed only on one server, and all users access the database via the network, you can implement a document locking logic. If a document is about to be opened for editing, the locking logic will first check if the document already has been locked (ie. someone else is editing the document right now). If the locking logic determine that the document isn't locked, it will allow the current user to open the document in edit mode. At the same time the locking logic activates a lock on the document, for the current user. This lock will prevent any other user from editing the document now. If they tried, they would be informed that the document is currently being edited by the current user.

    When the current user is finished editing the document, and close the document, the current document lock will be removed, and thus allowing anyone else to edit the document again.

    This logic works fine as long as everybody is working on the exact same database, and you will avoid Save conflicts, since nobody can save the same document at the same time.
  2. If the database is replicated, either to users local workstation or to other servers, the locking logic above wouldn't work. The replica copies of the database is not aware of each other, and they may not even be on-line. If a user or server edit the same document now, a replication conflict would be the result.

    Basically it's hard to avoid replication conflicts if too many people or servers has access to the document. One possible way to control this scenario is to have different Readers- and Authors access to the documents, and ensure that the ACL is held consistent on the replica copies. The idea is to keep the number of potential simultaneous authors to a document to a minimum.

Technically the database designer can also help avoiding replication conflicts:

None of the techniques above will eradicate the probability for replication conflicts completely. The designer therefore has to balance the features available with the probability of conflicts.