Skip to content

Commit e67f6dc

Browse files
gregns1Copilot
andauthored
CBG-4849: updates to api docs for ISGR (#7772)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ed1fe66 commit e67f6dc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/api/components/schemas.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -709,9 +709,10 @@ Replication:
709709
- custom
710710
x-enumDescriptions:
711711
default: |-
712-
In priority order, this will cause
713-
- Deletes to always win (the delete with the longest revision history wins if both revisions are deletes)
714-
- The revision with the longest revision history to win. This means the the revision with the most changes and therefore the highest Revision Tree ID will win.
712+
This will use:
713+
- Timestamp based conflict resolution (often referred to as "last write wins", or LWW). Which uses a document timestamp from most recent document revisions to compare.
714+
- The revision with the most recent timestamp wins.
715+
- If replicating a document that was last updated/written pre upgrade to SG 4.x, the default policy for versions < 4.x will be used.
715716
localWins: This will result in local revisions always being the winner in any conflict.
716717
remoteWins: This will result in remote revisions always being the winner in any conflict.
717718
custom: This will result in conflicts going through your own custom conflict resolver. You must provide this logic as a Javascript function in the `custom_conflict_resolver` parameter.
@@ -745,6 +746,8 @@ Replication:
745746
746747
Using complex `custom_conflict_resolver` functions can noticeably degrade performance. Use a built-in resolver whenever possible.
747748
749+
If a document merge is being done, the `_rev` and `_cv` properties should not be included in the returned document body as Sync Gateway will generate new values for these.
750+
748751
This is an Enterprise Edition only feature.
749752
type: string
750753
default: ""

0 commit comments

Comments
 (0)