Home / GitHub Page

Help required: Sync in Joplin

Can someone please help me understand the Sync in Joplin. I mean we don’t have a dedicated database for users in Joplin. All of their data is stored in their accounts like nextcloud, dropbox, etc. And we check all the operations like create, delete, etc. according to their update_time and while syncing we check all the operations with update_time less than the second operation will get executed first.
But what if two operations take place at the same time on two different devices, like updating a note on one device and deleting it on the other device, what operation will get executed first?
And also how are we executing this? I mean from a development and implementation point of view in mobile?
I will be really thankful if someone can help me in this.

what is the sync code saying?
There should be some in code doc, giving information how sync conflicts are solved.

May you find some information in

Thankyou so much Sir, I will look into these issues and PR’s. The code has some comments about how’s it doing that, but I was facing some difficulty in how exactly its working and syncing with other devices. I will look to these issues and code again and will ask you if I still have any doubt.
Thanks for the help.

1 Like