{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/860","repository_url":"https://api.github.com/repos/Azure/azure-sdk-for-java","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/860/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/860/comments","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/860/events","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/860","id":161054855,"number":860,"title":"[Design] make virtualMachineImages().listByRegion(regionName) lazy","user":{"login":"anuchandy","id":1471612,"avatar_url":"https://avatars.githubusercontent.com/u/1471612?v=3","gravatar_id":"","url":"https://api.github.com/users/anuchandy","html_url":"https://github.com/anuchandy","followers_url":"https://api.github.com/users/anuchandy/followers","following_url":"https://api.github.com/users/anuchandy/following{/other_user}","gists_url":"https://api.github.com/users/anuchandy/gists{/gist_id}","starred_url":"https://api.github.com/users/anuchandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuchandy/subscriptions","organizations_url":"https://api.github.com/users/anuchandy/orgs","repos_url":"https://api.github.com/users/anuchandy/repos","events_url":"https://api.github.com/users/anuchandy/events{/privacy}","received_events_url":"https://api.github.com/users/anuchandy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/labels/Design","name":"Design","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"anuchandy","id":1471612,"avatar_url":"https://avatars.githubusercontent.com/u/1471612?v=3","gravatar_id":"","url":"https://api.github.com/users/anuchandy","html_url":"https://github.com/anuchandy","followers_url":"https://api.github.com/users/anuchandy/followers","following_url":"https://api.github.com/users/anuchandy/following{/other_user}","gists_url":"https://api.github.com/users/anuchandy/gists{/gist_id}","starred_url":"https://api.github.com/users/anuchandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuchandy/subscriptions","organizations_url":"https://api.github.com/users/anuchandy/orgs","repos_url":"https://api.github.com/users/anuchandy/repos","events_url":"https://api.github.com/users/anuchandy/events{/privacy}","received_events_url":"https://api.github.com/users/anuchandy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/milestones/25","html_url":"https://github.com/Azure/azure-sdk-for-java/milestones/1.0.0-beta2","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/milestones/25/labels","id":1643746,"number":25,"title":"1.0.0-beta2","description":"","creator":{"login":"jianghaolu","id":2320445,"avatar_url":"https://avatars.githubusercontent.com/u/2320445?v=3","gravatar_id":"","url":"https://api.github.com/users/jianghaolu","html_url":"https://github.com/jianghaolu","followers_url":"https://api.github.com/users/jianghaolu/followers","following_url":"https://api.github.com/users/jianghaolu/following{/other_user}","gists_url":"https://api.github.com/users/jianghaolu/gists{/gist_id}","starred_url":"https://api.github.com/users/jianghaolu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jianghaolu/subscriptions","organizations_url":"https://api.github.com/users/jianghaolu/orgs","repos_url":"https://api.github.com/users/jianghaolu/repos","events_url":"https://api.github.com/users/jianghaolu/events{/privacy}","received_events_url":"https://api.github.com/users/jianghaolu/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":25,"state":"open","created_at":"2016-03-14T17:29:43Z","updated_at":"2016-06-19T03:39:39Z","due_on":"2016-04-06T07:00:00Z","closed_at":null},"comments":4,"created_at":"2016-06-19T03:39:39Z","updated_at":"2016-06-19T18:36:51Z","closed_at":null,"body":"virtualMachineImages().listByRegion(regionName) method call took around 14 minutes to return, in my subscription the list contains around 2400 images. This will be a bad user experience.\r\n\r\nImprovement:\r\n\r\nWe can improve this by extending PagedList idea, i.e. virtualMachineImages().listByRegion(regionName) should return a PagedList immediately. Once user starts iterating though the list then we need to lazy load the images.\r\n\r\nThis involves lazy loading offers, skus and images."},"comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/comments/227012960","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/860#issuecomment-227012960","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/860","id":227012960,"user":{"login":"anuchandy","id":1471612,"avatar_url":"https://avatars.githubusercontent.com/u/1471612?v=3","gravatar_id":"","url":"https://api.github.com/users/anuchandy","html_url":"https://github.com/anuchandy","followers_url":"https://api.github.com/users/anuchandy/followers","following_url":"https://api.github.com/users/anuchandy/following{/other_user}","gists_url":"https://api.github.com/users/anuchandy/gists{/gist_id}","starred_url":"https://api.github.com/users/anuchandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuchandy/subscriptions","organizations_url":"https://api.github.com/users/anuchandy/orgs","repos_url":"https://api.github.com/users/anuchandy/repos","events_url":"https://api.github.com/users/anuchandy/events{/privacy}","received_events_url":"https://api.github.com/users/anuchandy/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T18:36:51Z","updated_at":"2016-06-19T18:36:51Z","body":"\r\n\r\n![imageslist1-3](https://cloud.githubusercontent.com/assets/1471612/16179134/fe9b1c60-3611-11e6-93af-dd3efdaa1863.gif)\r\n"}}
{"actor":{"display_login":"anuchandy"}}