{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/18945","labels_url":"https://api.github.com/repos/owncloud/core/issues/18945/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/18945/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/18945/events","html_url":"https://github.com/owncloud/core/pull/18945","id":105746940,"number":18945,"title":"Cache result of check upgrade","user":{"login":"individual-it","id":2425577,"avatar_url":"https://avatars.githubusercontent.com/u/2425577?v=3","gravatar_id":"","url":"https://api.github.com/users/individual-it","html_url":"https://github.com/individual-it","followers_url":"https://api.github.com/users/individual-it/followers","following_url":"https://api.github.com/users/individual-it/following{/other_user}","gists_url":"https://api.github.com/users/individual-it/gists{/gist_id}","starred_url":"https://api.github.com/users/individual-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/individual-it/subscriptions","organizations_url":"https://api.github.com/users/individual-it/orgs","repos_url":"https://api.github.com/users/individual-it/repos","events_url":"https://api.github.com/users/individual-it/events{/privacy}","received_events_url":"https://api.github.com/users/individual-it/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/3%20-%20To%20Review","name":"3 - To Review","color":"ededed"},{"url":"https://api.github.com/repos/owncloud/core/labels/performance","name":"performance","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-10T07:29:48Z","updated_at":"2015-09-10T11:58:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/owncloud/core/pulls/18945","html_url":"https://github.com/owncloud/core/pull/18945","diff_url":"https://github.com/owncloud/core/pull/18945.diff","patch_url":"https://github.com/owncloud/core/pull/18945.patch"},"body":"instead of calling ````\\OCP\\Util::needUpgrade()```` again and again, save the result in ````self::$needUpgrade```` and return that value when asked\r\n\r\nI have done some performance tests. Running 4 user sessions, every uploading 10 folders with 10 small files (4byte) in it. After the upload the test runs PROFIND and downloads all the files again.\r\nHere is the code of the test: https://github.com/individual-it/owncloud-performance-test\r\nIt depends on https://github.com/owncloud/pyocclient/\r\n\r\nI have compared (means of 4 runs):\r\n* 8.1\r\n* the master branch of the state before I've branched out 73b43db\r\n* this skip_unnecessary_cache_updates patch #18753 \r\n* and this patch\r\n\r\n![owncloud_perf](https://cloud.githubusercontent.com/assets/2425577/9782550/bc65eb0a-57bd-11e5-9ffa-eed5eec6f9bd.png)\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/139213736","html_url":"https://github.com/owncloud/core/pull/18945#issuecomment-139213736","issue_url":"https://api.github.com/repos/owncloud/core/issues/18945","id":139213736,"user":{"login":"karlitschek","id":867445,"avatar_url":"https://avatars.githubusercontent.com/u/867445?v=3","gravatar_id":"","url":"https://api.github.com/users/karlitschek","html_url":"https://github.com/karlitschek","followers_url":"https://api.github.com/users/karlitschek/followers","following_url":"https://api.github.com/users/karlitschek/following{/other_user}","gists_url":"https://api.github.com/users/karlitschek/gists{/gist_id}","starred_url":"https://api.github.com/users/karlitschek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlitschek/subscriptions","organizations_url":"https://api.github.com/users/karlitschek/orgs","repos_url":"https://api.github.com/users/karlitschek/repos","events_url":"https://api.github.com/users/karlitschek/events{/privacy}","received_events_url":"https://api.github.com/users/karlitschek/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T11:58:27Z","updated_at":"2015-09-10T11:58:27Z","body":"interesting idea. @VicDeo @icewind1991 opinions? "}}