Before the PR (what is the issue or what needed to be done)
Datapoint download is quite slow especially when there are lots of images
If datapoint download stops halfway, when restarted all progress is lots
The solution
Use async for image download to download them in paralell
Only download images for assigned forms, sometimes a registration form is not assigned but we still get its data because the app needs them but since the data will not be displayed no need to download the image
Save cursor after each api call
Before the PR (what is the issue or what needed to be done)
Datapoint download is quite slow especially when there are lots of images If datapoint download stops halfway, when restarted all progress is lots
The solution
Use async for image download to download them in paralell Only download images for assigned forms, sometimes a registration form is not assigned but we still get its data because the app needs them but since the data will not be displayed no need to download the image Save cursor after each api call
Screenshots (if appropriate)
NA
Reviewer Checklist