{"action":"opened","issue":{"url":"https://api.github.com/repos/owncloud/android/issues/1644","repository_url":"https://api.github.com/repos/owncloud/android","labels_url":"https://api.github.com/repos/owncloud/android/issues/1644/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/android/issues/1644/comments","events_url":"https://api.github.com/repos/owncloud/android/issues/1644/events","html_url":"https://github.com/owncloud/android/issues/1644","id":151596347,"number":1644,"title":"Battery drain: sync scans for unchanged folders","user":{"login":"llucax","id":1031485,"avatar_url":"https://avatars.githubusercontent.com/u/1031485?v=3","gravatar_id":"","url":"https://api.github.com/users/llucax","html_url":"https://github.com/llucax","followers_url":"https://api.github.com/users/llucax/followers","following_url":"https://api.github.com/users/llucax/following{/other_user}","gists_url":"https://api.github.com/users/llucax/gists{/gist_id}","starred_url":"https://api.github.com/users/llucax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llucax/subscriptions","organizations_url":"https://api.github.com/users/llucax/orgs","repos_url":"https://api.github.com/users/llucax/repos","events_url":"https://api.github.com/users/llucax/events{/privacy}","received_events_url":"https://api.github.com/users/llucax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-28T09:54:00Z","updated_at":"2016-04-28T09:54:00Z","closed_at":null,"body":"### Expected behaviour\r\nMinimal activity when syncing with a server with a lot of folders but no changes since las sync\r\n\r\n### Actual behaviour\r\nMany folders gets scanned, making the phone busy (awake) for a long time on each sync, and draining the battery.\r\n\r\n### Steps to reproduce\r\n1. Create a lot of folders and files in the server\r\n2. Activate sync\r\n3. Wait and check server logs and phone's battery\r\n4. Maybe use external (local) storage? Most of the folders are in external (local) storage, so it might be relevant.\r\n\r\nCan this problem be reproduced with the official owncloud server?\r\n(url: https://demo.owncloud.org, user: test, password: test)\r\n\r\nI haven't tested.\r\n\r\n### Environment data\r\nAndroid version: 6.0.1\r\n\r\nDevice model: Samsung Galaxy S4 LTE\r\n\r\nStock or customized system: Cyanogenmod 13\r\n\r\nownCloud app version: 2.0.0\r\n\r\nownCloud server version: 9.0.1\r\n\r\n### Logs\r\n#### Web server error log\r\nLoads of... (two entries for each folder)\r\n```\r\nserver:443 10.1.1.50 - - [27/Apr/2016:00:40:44 +0200] \"PROPFIND /remote.php/webdav/folder/ HTTP/1.1\" 207 2040 \"-\" \"Mozilla/5.0 (Android) ownCloud-android/2.0.0\"\r\nserver:443 10.1.1.50 - - [27/Apr/2016:00:40:44 +0200] \"PROPFIND /remote.php/webdav/folder/ HTTP/1.1\" 207 37653 \"-\" \"Mozilla/5.0 (Android) ownCloud-android/2.0.0\"\r\n```\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n```\r\n```\r\n"}}