I got some issues when users syncing Image (1000 records ++, and each record has a file size around 0.2 - 2 MB with already compressed.) from Server-side to Local Storage because it timeout and also had some conditions to fix.
Condition
- User got slow internet and also has limit data usage in each month
- User can syncing every morning (has Wi-Fi but still slow) , don't want to sync during working time because as I mention they have limit data usage so need to finish all thing (binary) in the morning.
- No download a new plugin (if possible, because I don't need user to reinstall application)
- No modify Local DB (same reason as above)
- Everything that do in server-side is fine.
- Need to syncing by batch because if it get all record at once it will error 'Json cut ....'
So my idea is I will rescale image when It call CreateOrUpdatePicture function (doing at server-side and limit only 512kb)
Any other ideas?
Thank you.
Hello Kittisak.
That is not a plugin specific question.
If you have 1GB of data to transfer, you will have to change something.
Are Record and Image in separate entities? This speeds the read/write of the Record.
You can do batches. Just need to save where you last stopped and resume from there.
Also, you can inform the user of how much data is still pending.
You can compress and zip on the server and unzip locally. Never tried this component.
Yes, record and image are separate (1 to 1) , good idea Thank you!