Replies: 2 comments 6 replies
-
Did you see #802 (comment) ? |
Beta Was this translation helpful? Give feedback.
3 replies
-
I have a progress: everytime parameter value changes, a full sync is executed. We are sending a parameter called "LastSyncDate" which holds the information about last successfull sync and obviously, this is constantly changing. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
After upgrading Dotmim to 0.9.6, the sync is acting a little bit weird. Of course I had to refactor the way I am adding the parameters to the sync since they are no longer added directly to the agent but rather passed as a parameter to the agent.SynchronizeAsync() method. However, here is where it gets interesting. Calling this method like this:
var s1 = await _agent.SynchronizeAsync(_currentScope, type, _syncParameters);
will result in full sync being executed - meaning it looks like the reinitialize has been done but the database was not really deleted (also nothing was uploaded). Syncing over and over again results in full sync being made every time. However, if I call the sync method this way:
var s1 = await _agent.SynchronizeAsync(_currentScope, type); // without parameters
only the first sync is "full", all the other ones are normal (and also data is uploaded to the server). What could cause such behavior? I dug into the source code a little bit and found nothing special that is being done in "SynchronizeAsync" method when parameters are set.
Beta Was this translation helpful? Give feedback.
All reactions