62
Views
3
Comments
Offline Data Sync Issue - Some actions are taking lot of time
Application Type
Mobile
Service Studio Version
11.54.21 (Build 62708)

Hi Friends,

I hope everyone is doing well.

I am currently encountering an issue within the application logic. Specifically, a particular client action responsible for synchronizing local documents is exhibiting an extended syncing time, eventually leading to a timeout error. Consequently, this interruption in the synchronization process prevents the execution of subsequent actions, causing them to stall without successful synchronization. 



Please help me resolve this issue or guide me with some resolution tips to solve this issue.

Thankyou in advance.

UserImage.jpg
Narendra Maheshwari

Hi @Md Sohel Khan,

If I am not mistaken, the timeout problem is being caused by your document binaries.
Binaries are large and take more time than usual for any database operation, as you are aware.

You can try with offline sync method: implementing_offline_sync

There are some best practices that help optimize syncing time, which you can refer here: synchronization_on_mobile_devices/




2020-11-25 10-45-32
Mostafa Othman
Champion

Hello Sohel,

Syncing binary data of documents will take long time especially if document size is big and you have high number of records that you are syncing.

I would recommend to sync all details into document table except binary data of document itself so you can display all document information on screen of your mobile data from local storage and once user click on a specific document to open or download you can query binary data of this document from server using document Id 

2020-01-08 12-23-57
Jitender Gaur

Hello Sohel, 

As per OutSystems best practices & approach make sure that the local entities have only those attributes which are use for offline business logic requires and do not add all the attributes of the server entities. 

Also, Do not load all data from server to local. update only those records that are relevant to the current user of the mobile application.   


Please follow the checklist for offline sync from the OutSystems.

https://success.outsystems.com/documentation/11/developing_an_application/use_data/offline/offline_sync_checklist


I hope it will help to your sync logic and approach. 

 

Thanks


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