karya-inc / KaryaAndroid-Features

2 stars 0 forks source link

[Enhancement] Cleanup sync #2

Closed thedroiddiv closed 1 month ago

thedroiddiv commented 3 months ago

Currently the sync does too much things which can be separated out into their own process. It does

  1. Uploads profile task
  2. Downloads profile task
  3. Updates payments information
  4. Fetches all avatars of workers
  5. Pushed any update to avatars
  6. Pushes db updates
  7. Fetches db updates
  8. Downloads new input files
  9. Deletes old files

And all these process happens for each avatar one by one. Simplifying sync could reduce the wait time significantly. To do so,