Skip to content
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

Improve automatic synchronization process #4

Closed
wants to merge 6 commits into from

Conversation

przybylski
Copy link
Member

@przybylski przybylski commented Jun 11, 2016

Currently time between synchronization is constant and is equal to 3h. Let's give users freedom to specify the time between synchronizations.

@tobiasKaminsky
Copy link
Member

Great idea!
To avoid user complaining that syncing is too often we should limit to a minimum of 60 minutes?

@AndyScherzinger
Copy link
Member

Also think this is a good idea and yes 60 minutes being the absolute lowest end configurable is the right thing to do.

What do you think @jancborchardt from a UX perspective. ATM the preference would end up in the Details section.

@przybylski
Copy link
Member Author

Personally I wouldn't restrict users to set any non negative value they want. But if I get outvoted I'll change it

@tobiasKaminsky
Copy link
Member

Or we could show a little warning/info that a value <60 could be battery consumption.

@jancborchardt
Copy link
Member

Hm, a custom setting like that seems strange. Is there no more intelligent way to solve this without people needing to fiddle with settings. Cause if people change it and are still unhappy with the results, people will feel stupid or frustrated. If the setting is not there in the first place, that’s less likely.

@przybylski
Copy link
Member Author

So, drop?

@tobiasKaminsky
Copy link
Member

The more "intelligent" approach is maybe the best way to go?
So to get a better understanding: why is it fixed to 3h? A balance between battery consumption and update frequency?
Maybe something like:

  • measure sync process
  • if > x minutes then +1h pause otherwise decrease sync time

@b1ggjoe
Copy link

b1ggjoe commented Jun 14, 2016

Is there a way to offer a choice? For Example:

Sync Frequency:

  • Instant
  • Every 5 Minutes
  • Every 15 Minutes
  • Every 30 Minutes
  • Every Hour

With another option for 'Manual' sync on demand?

J.

On Tuesday, June 14, 2016, Tobias Kaminsky [email protected] wrote:

The more "intelligent" approach is maybe the best way to go?
So to get a better understanding: why is it fixed to 3h? A balance between
battery consumption and update frequency?
Maybe something like:

  • measure sync process
  • if > x minutes then +1h pause otherwise decrease sync time


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#4 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ALfB7z_b5TckoB5HMtQTxqZxOl_SM50yks5qLwbygaJpZM4IzfxQ
.

@przybylski
Copy link
Member Author

Instant as in? generally modified files should be uploaded to server but I am not sure how this function evolved over the time.
For more intelligent way. there is a lot of approaches which can be taken, from probing, not syncing when user is sleeping, etc.
There are a lot of paths to explore.

Why it was 3hrs? Random number :P i didn't give too much thinking when setting the sync time gap for 3h.

@ghost
Copy link

ghost commented Jun 20, 2016

The choice should be given imho.
A simple warning that setting it too low could cause battery drain should be enough, users will be smart enough not to set it too low.

@jancborchardt
Copy link
Member

@tobiasKaminsky yes, I’d prefer we go for a more intelligent approach. This is exactly details that the app should take care of and no user should need to fiddle with. :)

@tobiasKaminsky
Copy link
Member

But currently I am cluless how we can implement such an intelligent mechanism.

@AndyScherzinger
Copy link
Member

There would have to be a more or less smart algorithm taking the files changed frequency into account. In case at least one files change is tracked within an hour the sync can happen every hour, if files change less frequently raise the time between detected changes. This needs quite some change occurrence tracking.

@jancborchardt
Copy link
Member

Would really be cool if we can have something like that, at least step by step. Because introducing a setting for it results in the 2 big problems which are always there on introducing settings for every little thing:

  1. They obscure the other, actually important settings.
  2. They are very difficult to remove once introduced and people will complain even if the new solution is better and more automatic.

@AndyScherzinger
Copy link
Member

That's true but we would also have to think this through a little more even if we start step by step. So we need to have an answer how such an algorithm would play nicely with other sync relevant things like WiFi and Charging because having features like that for instant upload but then ignoring this for sync might confuse users.

@AndyScherzinger AndyScherzinger force-pushed the configurable_sync_time branch 4 times, most recently from 927b0f5 to 437ee61 Compare August 8, 2016 22:02
@AndyScherzinger AndyScherzinger force-pushed the configurable_sync_time branch 3 times, most recently from 00d5dc1 to adc723f Compare August 18, 2016 14:14
@AndyScherzinger AndyScherzinger force-pushed the configurable_sync_time branch 4 times, most recently from d3888f6 to 00afde0 Compare September 8, 2016 11:21
@nextcloud nextcloud deleted a comment Sep 4, 2018
@nextcloud nextcloud deleted a comment Sep 4, 2018
@nextcloud nextcloud deleted a comment Sep 5, 2018
@nextcloud nextcloud deleted a comment Sep 5, 2018
@nextcloud nextcloud deleted a comment Sep 6, 2018
@nextcloud nextcloud deleted a comment Sep 6, 2018
@nextcloud nextcloud deleted a comment Sep 12, 2018
@nextcloud nextcloud deleted a comment Sep 12, 2018
@nextcloud nextcloud deleted a comment Sep 21, 2018
@nextcloud nextcloud deleted a comment Sep 21, 2018
@nextcloud-android-bot
Copy link
Collaborator

Lint

TypeMasterPR
Warnings113113
Errors

FindBugs (new)

Warning TypeNumber
Bad practice Warnings35
Correctness Warnings167
Internationalization Warnings14
Malicious code vulnerability Warnings10
Multithreaded correctness Warnings9
Performance Warnings124
Security Warnings202
Dodgy code Warnings139
Total700

FindBugs (master)

Warning TypeNumber
Bad practice Warnings35
Correctness Warnings167
Internationalization Warnings14
Malicious code vulnerability Warnings10
Multithreaded correctness Warnings9
Performance Warnings124
Security Warnings202
Dodgy code Warnings139
Total700

@nextcloud nextcloud deleted a comment Sep 25, 2018
@nextcloud nextcloud deleted a comment Sep 25, 2018
@tobiasKaminsky
Copy link
Member

With #2886 there is no real need of having an automated sync as we remove "keep available offline", so this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants