Offline/Online Support - Duplicate Id's #628
-
Before I begin, let me say, this is an amazing library and the documentation is some of the best I've seen.
In this scenario, the content on Client is overridden with the server because I have it set to Server wins in a conflict. This same issue occurs when it is set to client wins, just in the other direction. The root of the issue is, I believe, that each user, in their separate environments, created a entry in the DB's with the same ID. Thus, when they synced from the client, the entry on the losing side is removed. How should I handle this case? I notice there is a conflict resolution in your library, which is amazing but is there a way to accept BOTH entries? I imagine this could work like visual studio when there is a merge conflict: both entries are valid thus both are accepted. I sure appreciate any advice or guidance on this matter. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Same iDS means an Update conflict to resolve. More on the subject here : #590 |
Beta Was this translation helpful? Give feedback.
-
Awesome. Man, you are amazing. That works great. I appreciate it. |
Beta Was this translation helpful? Give feedback.
Same iDS means an Update conflict to resolve.
If you want to avoid this kind of situation, you should use GUID as primary keys.
That way, you are sure that you will not have sync conflict when inserting rows on both side
More on the subject here : #590