{"action":"created","issue":{"url":"https://api.github.com/repos/google/skicka/issues/87","labels_url":"https://api.github.com/repos/google/skicka/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/google/skicka/issues/87/comments","events_url":"https://api.github.com/repos/google/skicka/issues/87/events","html_url":"https://github.com/google/skicka/issues/87","id":84238979,"number":87,"title":"Optionally forgo the setting of extended metadata","user":{"login":"bobobo1618","id":707839,"avatar_url":"https://avatars.githubusercontent.com/u/707839?v=3","gravatar_id":"","url":"https://api.github.com/users/bobobo1618","html_url":"https://github.com/bobobo1618","followers_url":"https://api.github.com/users/bobobo1618/followers","following_url":"https://api.github.com/users/bobobo1618/following{/other_user}","gists_url":"https://api.github.com/users/bobobo1618/gists{/gist_id}","starred_url":"https://api.github.com/users/bobobo1618/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobobo1618/subscriptions","organizations_url":"https://api.github.com/users/bobobo1618/orgs","repos_url":"https://api.github.com/users/bobobo1618/repos","events_url":"https://api.github.com/users/bobobo1618/events{/privacy}","received_events_url":"https://api.github.com/users/bobobo1618/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-02T22:23:43Z","updated_at":"2015-06-30T01:13:45Z","closed_at":null,"body":"I'm mainly using Skicka as a faster way to update my stuff on Drive. The metadata cache make this far faster than Rclone which seems to insist on re-hashing all my local data every time I sync.\r\n\r\nHowever I don't really need the additional metadata Skicka provides like UNIX style file permissions and with the amount of data I have (~50000 files), those extra requests can significantly slow things, particularly with Drive API rate limiting.\r\n\r\nIt'd be great if we had a switch to disable the extra metadata stuff."},"comment":{"url":"https://api.github.com/repos/google/skicka/issues/comments/116897221","html_url":"https://github.com/google/skicka/issues/87#issuecomment-116897221","issue_url":"https://api.github.com/repos/google/skicka/issues/87","id":116897221,"user":{"login":"mmp","id":102567,"avatar_url":"https://avatars.githubusercontent.com/u/102567?v=3","gravatar_id":"","url":"https://api.github.com/users/mmp","html_url":"https://github.com/mmp","followers_url":"https://api.github.com/users/mmp/followers","following_url":"https://api.github.com/users/mmp/following{/other_user}","gists_url":"https://api.github.com/users/mmp/gists{/gist_id}","starred_url":"https://api.github.com/users/mmp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmp/subscriptions","organizations_url":"https://api.github.com/users/mmp/orgs","repos_url":"https://api.github.com/users/mmp/repos","events_url":"https://api.github.com/users/mmp/events{/privacy}","received_events_url":"https://api.github.com/users/mmp/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T01:13:45Z","updated_at":"2015-06-30T01:13:45Z","body":"I don't think that the metadata is causing any extra HTTP requests (but am open to being convinced that I'm wrong). To confirm, I looked at some upload traces using -debug -dump-http.  The results were:\r\n\r\n1. When the local metadata cache is updated, it does ask for the extra properties that encode the permissions metadata, but that's one of multiple fields asked for, so it costs some bandwidth and such, but I assume that is fairly limited.\r\n2. When doing an upload, skicka currently does 3 HTTP transactions for a new file (and 2 for an already-existing one). For a new file, it does a POST to create the file; it includes the metadata during this one. It then does a PUT to fill in its contents. Only after a successful upload does it then do a PATCH to update the modification time. (It is careful to leave the modification time in the year 1970 until a successful upload is done, just so that if there's an upload error, there's no confusion that a partial file is actually legitimate.)  For an existing file, it does a PUT and a PATCH.\r\n\r\n(It'd be better to create new files with just a PUT and a PATCH and skip creating the zero-length file, but that's a separate issue.)\r\n\r\nSo, I don't think there are any separate HTTP transactions related to the permissions; that's just all wrapped up in the existing calls (as far as I can see).\r\n"}}