{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt-winrepo/issues/60","labels_url":"https://api.github.com/repos/saltstack/salt-winrepo/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt-winrepo/issues/60/comments","events_url":"https://api.github.com/repos/saltstack/salt-winrepo/issues/60/events","html_url":"https://github.com/saltstack/salt-winrepo/issues/60","id":40647905,"number":60,"title":"pkg.list_pkgs is incredibly slow when there are many packages installed","user":{"login":"lorengordon","id":8457307,"avatar_url":"https://avatars.githubusercontent.com/u/8457307?v=3","gravatar_id":"","url":"https://api.github.com/users/lorengordon","html_url":"https://github.com/lorengordon","followers_url":"https://api.github.com/users/lorengordon/followers","following_url":"https://api.github.com/users/lorengordon/following{/other_user}","gists_url":"https://api.github.com/users/lorengordon/gists{/gist_id}","starred_url":"https://api.github.com/users/lorengordon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorengordon/subscriptions","organizations_url":"https://api.github.com/users/lorengordon/orgs","repos_url":"https://api.github.com/users/lorengordon/repos","events_url":"https://api.github.com/users/lorengordon/events{/privacy}","received_events_url":"https://api.github.com/users/lorengordon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-08-19T23:13:28Z","updated_at":"2015-07-14T14:52:46Z","closed_at":null,"body":"It takes a very long time for pkg.list_pkgs to complete when there are a lot of packages installed. For example, I've been doing a little testing with salt directly on my personal laptop, and I used powershell to time the command taking over 40 minutes to complete. Granted, I have 161 installed programs and 96 installed updates, but still...\r\n\r\nPS >Measure-Command -Expression {Start-Process C:\\salt\\salt-call.exe -ArgumentList \"--local pkg.list_pkgs\" -NoNewWindow -PassThru -Wait}\r\nDays              : 0\r\nHours             : 0\r\nMinutes           : 42\r\nSeconds           : 46\r\nMilliseconds      : 889\r\nTicks             : 25668891551\r\nTotalDays         : 0.0297093652210648\r\nTotalHours        : 0.713024765305555\r\nTotalMinutes      : 42.7814859183333\r\nTotalSeconds      : 2566.8891551\r\nTotalMilliseconds : 2566889.1551\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt-winrepo/issues/comments/121267244","html_url":"https://github.com/saltstack/salt-winrepo/issues/60#issuecomment-121267244","issue_url":"https://api.github.com/repos/saltstack/salt-winrepo/issues/60","id":121267244,"user":{"login":"UtahDave","id":306240,"avatar_url":"https://avatars.githubusercontent.com/u/306240?v=3","gravatar_id":"","url":"https://api.github.com/users/UtahDave","html_url":"https://github.com/UtahDave","followers_url":"https://api.github.com/users/UtahDave/followers","following_url":"https://api.github.com/users/UtahDave/following{/other_user}","gists_url":"https://api.github.com/users/UtahDave/gists{/gist_id}","starred_url":"https://api.github.com/users/UtahDave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UtahDave/subscriptions","organizations_url":"https://api.github.com/users/UtahDave/orgs","repos_url":"https://api.github.com/users/UtahDave/repos","events_url":"https://api.github.com/users/UtahDave/events{/privacy}","received_events_url":"https://api.github.com/users/UtahDave/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T14:52:46Z","updated_at":"2015-07-14T14:52:46Z","body":"Sorry for not seeing this issue sitting here for almost a year. I didn't see it among the other issues.  That's embarrassing.\r\n\r\nIf this is still a problem, let's copy this issue over to the main Salt repo since this is more of a problem with Salt's internal pkg module and not so much with this software pkg repo."}}