{"action":"created","issue":{"url":"https://api.github.com/repos/translate/pootle/issues/4409","labels_url":"https://api.github.com/repos/translate/pootle/issues/4409/labels{/name}","comments_url":"https://api.github.com/repos/translate/pootle/issues/4409/comments","events_url":"https://api.github.com/repos/translate/pootle/issues/4409/events","html_url":"https://github.com/translate/pootle/pull/4409","id":127817760,"number":4409,"title":"Optimization: use values_list to calculate vfolder paths","user":{"login":"phlax","id":454682,"avatar_url":"https://avatars.githubusercontent.com/u/454682?v=3","gravatar_id":"","url":"https://api.github.com/users/phlax","html_url":"https://github.com/phlax","followers_url":"https://api.github.com/users/phlax/followers","following_url":"https://api.github.com/users/phlax/following{/other_user}","gists_url":"https://api.github.com/users/phlax/gists{/gist_id}","starred_url":"https://api.github.com/users/phlax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phlax/subscriptions","organizations_url":"https://api.github.com/users/phlax/orgs","repos_url":"https://api.github.com/users/phlax/repos","events_url":"https://api.github.com/users/phlax/events{/privacy}","received_events_url":"https://api.github.com/users/phlax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-21T00:30:04Z","updated_at":"2016-01-21T08:50:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/translate/pootle/pulls/4409","html_url":"https://github.com/translate/pootle/pull/4409","diff_url":"https://github.com/translate/pootle/pull/4409.diff","patch_url":"https://github.com/translate/pootle/pull/4409.patch"},"body":"In my tests this optimization almost halves the db time to run the refresh_stats command on the sync side.\r\n\r\ntimings:\r\n\r\npootle refresh_stats --project=firefox --language=af\r\n\r\nOLD: 564 queries run, total 0.573 seconds\r\nNEW: 320 queries run, total 0.326 seconds"},"comment":{"url":"https://api.github.com/repos/translate/pootle/issues/comments/173502615","html_url":"https://github.com/translate/pootle/pull/4409#issuecomment-173502615","issue_url":"https://api.github.com/repos/translate/pootle/issues/4409","id":173502615,"user":{"login":"unho","id":939880,"avatar_url":"https://avatars.githubusercontent.com/u/939880?v=3","gravatar_id":"","url":"https://api.github.com/users/unho","html_url":"https://github.com/unho","followers_url":"https://api.github.com/users/unho/followers","following_url":"https://api.github.com/users/unho/following{/other_user}","gists_url":"https://api.github.com/users/unho/gists{/gist_id}","starred_url":"https://api.github.com/users/unho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unho/subscriptions","organizations_url":"https://api.github.com/users/unho/orgs","repos_url":"https://api.github.com/users/unho/repos","events_url":"https://api.github.com/users/unho/events{/privacy}","received_events_url":"https://api.github.com/users/unho/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T08:50:10Z","updated_at":"2016-01-21T08:50:10Z","body":"I am not particularly happy with duplicating code that is already on the VirtualFolderTreeItem model. But I guess it is for the speedup."}}