Auto-upload completely collapses if the media library is large
How to use GitHub
- Please use the 👍 reaction to show that you are interested into the same feature.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Had to use the feature request template, since the bug report template doesn't work on mobile (gets stuck in an infinite redirect between the GitHub app and my browser).
The issue
I have about 10,000 photos on my phone. All of these are already uploaded to Nextcloud. However, even attempting to set up auto-upload causes the app to become unbearably laggy. This includes
- The auto-upload settings page, which takes about 10 seconds to load
- The uploads page, which takes about 20 seconds to load, with all subsequent taps taking up to 10 seconds to register, and most operations failing
I'm not familiar with the details of how auto-upload works, but currently, it appears to attempt to upload all 10000 images, only skipping them once it realises they exist on the server, which takes an incredibly long time. The check seems to happen regardless of my configuration telling it to only upload when charging
To make matters worse, while this operation is running, Android repeatedly warns me that Nextcloud is not responding, even while it is in the background. This means I am unable to use my phone for any other task for the hours that this process takes to complete.
I believe that the auto-upload feature needs a complete rework to make it run efficiently without interrupting other activity on the device:
- It should detect new media without lagging the device for hours on end.
- It should check whether photos exist on the server before attempting to upload them
- It should be optimised so that it is fast to interact with, even when uploading tens of thousands of photos
- It shouldn't silently fail to upload photos (discussed at length elsewhere). Failed uploads should automatically retry at a later date.
I don't have much Android dev experience but I'm frustrated enough by this that I'd be willing to try to learn in order to fix this. Nextcloud is awesome, and I really appreciate all the hard work of the awesome contributors, but the state of auto-upload is currently usable for me (and seemingly many others).
Same.
Also:
Since the last update, automatic upload nedded to be configured again.
All settings were lost
+1 with about 6000 Images