-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ideas to enhance current auto upload #12675
Comments
So Ideas to fix these issues would be to:
|
Only partially works because it seems like executing a worker on file system changes only works for content uris (so only images and videos). So this seems to be a good solution for images and videos, but other files can not be synced that way. A delay between full scans of 1 day is too much for some applications, so maybe it would make sense to make 1 day full sync delay the default and add the option to have a custom delay (let the user choose if they prioritize the sync or battery consumption) |
But how is this whole rescan is working, so takes days. Does it check everything on server or does it calculate checksum on every file? Or is it just keep restarting over? As diskusage does whole disk scan in mere seconds. |
@regs01 it goes through every autoupload folder recursively and checks if the last modified timestamp is larger than the last scan (at least that's the behavior with the next release. Previously, it checked if the last modified timestamp is different to an saved modified timestamp in a local database). That's basically it. I am not sure if there is an better way on android but with the next release on my device it scanned 8000 Images in 60 sec. I would guess file explorers load those information only when needed to display them fast... The reason the notification suggest it sometimes takes ages to scan an directory is most likely the android background restriction that delay the work. If you know more about this toppic please share it. I am currently trying to optimize so every idea is welcome. |
Still it takes a little long. Notification is up there for over 2 minutes, while DiskUsage does that folder in just a second. And in still experiencing hourly long usages in stand by. I also set up auto upload only via WiFi. But it keeps rescanning almost every unlock even if not connected to WiFi. So there is may be another thing to optimize. At least for those using WiFi only. |
@regs01 one factor why it takes so long could be that the background work not gets enough computing power as compared to an application in the foreground. As far as I can tell, DiskUsage only shows size of folders and not scans that folder for all files. But if you have a concrete code snippet how to improve scanning in android, please share it. I have been working on it for multiple weeks now and always think about improvements, but everything I thought could work, didn't... |
Apparently the shown folders follows the "Show hidden files" options in the main settings. |
Solved as this issue is finally solved #12954 |
Id like to reopen the issue since the two way sync still consumes way too much battery. It drained 60% of my battery in a couple of hours. |
It is closed, but what I need is quite urgently a blacklist like in desktop version in the (android) app. |
I would say there are 4 issues with this implementation currently:
Originally posted by @JonasMayerDev in #12596 (comment)
The text was updated successfully, but these errors were encountered: