24
Views
3
Comments
Synchronization
Question

when i study architecture course  i can`t understand this point "Ensure sync granularity

Incremental by entity with partial commit - prepared for constant retries without repeating" how can i apply it in code? 


download.png
2023-10-21 19-42-11
Tousif Khan
Champion

Hi,

So it means while you are synchronising your data from any source of medium to your Outsystems Db, at that time suppose you are getting huge data, in that case to avoid data loss on timeouts, do a partial commit means, you have processed 2000 records and at any time your time or process is going to get time out, so we commit the transaction with the processed one, if we don't do that the transaction will role back the changes that has been done to your Db.
This is one example of One - https://www.outsystems.com/forums/discussion/81684/best-solution-of-timer/

Thanks

UserImage.jpg
Reem Shabayk

Many thanks for replying .is that mean on using timers only?

 i have a case.

if i try to make sync from local storage in mobile to server and make sync to data in a lot of entity has relation between, we sync sequentially based on relation and we have mentioned from ai mentor this take a lot of time. what should i do in this case 

2024-12-18 16-06-42
Junaid Syed

Hello Reem,

This is best explained in this document , please take a look.

Hope it helps!

Junaid

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.