{"action":"created","issue":{"url":"https://api.github.com/repos/flyerhzm/switch_user/issues/72","labels_url":"https://api.github.com/repos/flyerhzm/switch_user/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/flyerhzm/switch_user/issues/72/comments","events_url":"https://api.github.com/repos/flyerhzm/switch_user/issues/72/events","html_url":"https://github.com/flyerhzm/switch_user/issues/72","id":71552172,"number":72,"title":"switch takes ages","user":{"login":"gshilin","id":354111,"avatar_url":"https://avatars.githubusercontent.com/u/354111?v=3","gravatar_id":"","url":"https://api.github.com/users/gshilin","html_url":"https://github.com/gshilin","followers_url":"https://api.github.com/users/gshilin/followers","following_url":"https://api.github.com/users/gshilin/following{/other_user}","gists_url":"https://api.github.com/users/gshilin/gists{/gist_id}","starred_url":"https://api.github.com/users/gshilin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gshilin/subscriptions","organizations_url":"https://api.github.com/users/gshilin/orgs","repos_url":"https://api.github.com/users/gshilin/repos","events_url":"https://api.github.com/users/gshilin/events{/privacy}","received_events_url":"https://api.github.com/users/gshilin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-28T10:40:56Z","updated_at":"2015-05-12T01:41:57Z","closed_at":null,"body":"I've got around 400,000 users and switch takes ages.\r\nIt also tries to load all of these users into memory.\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/flyerhzm/switch_user/issues/comments/101095195","html_url":"https://github.com/flyerhzm/switch_user/issues/72#issuecomment-101095195","issue_url":"https://api.github.com/repos/flyerhzm/switch_user/issues/72","id":101095195,"user":{"login":"flyerhzm","id":66836,"avatar_url":"https://avatars.githubusercontent.com/u/66836?v=3","gravatar_id":"","url":"https://api.github.com/users/flyerhzm","html_url":"https://github.com/flyerhzm","followers_url":"https://api.github.com/users/flyerhzm/followers","following_url":"https://api.github.com/users/flyerhzm/following{/other_user}","gists_url":"https://api.github.com/users/flyerhzm/gists{/gist_id}","starred_url":"https://api.github.com/users/flyerhzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flyerhzm/subscriptions","organizations_url":"https://api.github.com/users/flyerhzm/orgs","repos_url":"https://api.github.com/users/flyerhzm/repos","events_url":"https://api.github.com/users/flyerhzm/events{/privacy}","received_events_url":"https://api.github.com/users/flyerhzm/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T01:41:57Z","updated_at":"2015-05-12T01:41:57Z","body":"@gshilin @sergey-alekseev on README, I mentioned \"If there are too many users (on production), the switch_user_select is not a good choice, you should call the switch user request by yourself.\", you can build an input text field, fuzzy search users by ajax, then call the switch user request."}}