{"action":"opened","issue":{"url":"https://api.github.com/repos/fog/fog-xenserver/issues/43","labels_url":"https://api.github.com/repos/fog/fog-xenserver/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/fog/fog-xenserver/issues/43/comments","events_url":"https://api.github.com/repos/fog/fog-xenserver/issues/43/events","html_url":"https://github.com/fog/fog-xenserver/issues/43","id":60092469,"number":43,"title":"collection.find is very slow and get_by_uuid is deprecated","user":{"login":"fmbiete","id":1531783,"avatar_url":"https://avatars.githubusercontent.com/u/1531783?v=3","gravatar_id":"","url":"https://api.github.com/users/fmbiete","html_url":"https://github.com/fmbiete","followers_url":"https://api.github.com/users/fmbiete/followers","following_url":"https://api.github.com/users/fmbiete/following{/other_user}","gists_url":"https://api.github.com/users/fmbiete/gists{/gist_id}","starred_url":"https://api.github.com/users/fmbiete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmbiete/subscriptions","organizations_url":"https://api.github.com/users/fmbiete/orgs","repos_url":"https://api.github.com/users/fmbiete/repos","events_url":"https://api.github.com/users/fmbiete/events{/privacy}","received_events_url":"https://api.github.com/users/fmbiete/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-06T11:48:52Z","updated_at":"2015-03-06T11:48:52Z","closed_at":null,"body":"This code is very slow when used in a big pool +150 servers\r\n```\r\nconnection.servers.find { |server| server.uuid == vm_uuid }\r\n```\r\n\r\nThis method is a lot faster, but it's deprecated?\r\n```\r\nconnection.servers.get_by_uuid(vm_uuid)\r\n```\r\nThe shown message is pretty confusing:\r\n```\r\n[fog][DEPRECATION] This method is deprecated. Use #get_by_uuid instead.\r\n```\r\n"}}