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

use HEAD for sync #835

Open
1 task done
alensiljak opened this issue Feb 27, 2021 · 0 comments
Open
1 task done

use HEAD for sync #835

alensiljak opened this issue Feb 27, 2021 · 0 comments

Comments

@alensiljak
Copy link

  • I have searched for existing issues that may be the same as or related to mine.

I have not looked at the code but, seeing the synchronisation taking quite long for a small number of files, my assumption would be that the whole remote file is read for comparison. That has also been hinted in #8.

Therefore, I would suggest using the HEAD request instead of GET and reading the last-modified date/time from the response header.
This might significantly reduce the traffic and improve the performance of the sync operation.

As a workaround I will try syncing to a local folder and then performing the sync on the same collection, using rclone.

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

No branches or pull requests

1 participant