{"action":"opened","issue":{"url":"https://api.github.com/repos/ballcue/cumpleCompany/issues/2","labels_url":"https://api.github.com/repos/ballcue/cumpleCompany/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ballcue/cumpleCompany/issues/2/comments","events_url":"https://api.github.com/repos/ballcue/cumpleCompany/issues/2/events","html_url":"https://github.com/ballcue/cumpleCompany/issues/2","id":60404011,"number":2,"title":"Utilizar findAllBy* en lugar de list().find","user":{"login":"fniwes","id":2119399,"avatar_url":"https://avatars.githubusercontent.com/u/2119399?v=3","gravatar_id":"","url":"https://api.github.com/users/fniwes","html_url":"https://github.com/fniwes","followers_url":"https://api.github.com/users/fniwes/followers","following_url":"https://api.github.com/users/fniwes/following{/other_user}","gists_url":"https://api.github.com/users/fniwes/gists{/gist_id}","starred_url":"https://api.github.com/users/fniwes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fniwes/subscriptions","organizations_url":"https://api.github.com/users/fniwes/orgs","repos_url":"https://api.github.com/users/fniwes/repos","events_url":"https://api.github.com/users/fniwes/events{/privacy}","received_events_url":"https://api.github.com/users/fniwes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-09T20:25:35Z","updated_at":"2015-03-09T20:25:35Z","closed_at":null,"body":"Utilizar findAllBy utiliza una búsqueda en la base de datos, a diferencia de utilizar list() que retorna todos los elementos en la tabla. Por lo tanto es mejor utilizar el findAllBy para filtrar a nivel de base datos que utilizar list() para recuperar todos los elementos y luego filtrar en groovy la colección.\r\n\r\nhttps://github.com/ballcue/cumpleCompany/blob/8a9f1dbf9aca607a832f914c4f52139f047babed/grails-app/controllers/cumplecompany/EmpleadosController.groovy#L11"}}