{"action":"created","issue":{"url":"https://api.github.com/repos/fedora-infra/bodhi/issues/301","labels_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/301/comments","events_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/301/events","html_url":"https://github.com/fedora-infra/bodhi/issues/301","id":102446001,"number":301,"title":"Investigate performance issues","user":{"login":"lmacken","id":9980,"avatar_url":"https://avatars.githubusercontent.com/u/9980?v=3","gravatar_id":"","url":"https://api.github.com/users/lmacken","html_url":"https://github.com/lmacken","followers_url":"https://api.github.com/users/lmacken/followers","following_url":"https://api.github.com/users/lmacken/following{/other_user}","gists_url":"https://api.github.com/users/lmacken/gists{/gist_id}","starred_url":"https://api.github.com/users/lmacken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmacken/subscriptions","organizations_url":"https://api.github.com/users/lmacken/orgs","repos_url":"https://api.github.com/users/lmacken/repos","events_url":"https://api.github.com/users/lmacken/events{/privacy}","received_events_url":"https://api.github.com/users/lmacken/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fedora-infra/bodhi/labels/API","name":"API","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-21T19:16:22Z","updated_at":"2015-09-26T15:42:21Z","closed_at":null,"body":"We need to profile submitting an update and setting a request, as these things seem to be taking a very long time"},"comment":{"url":"https://api.github.com/repos/fedora-infra/bodhi/issues/comments/143464948","html_url":"https://github.com/fedora-infra/bodhi/issues/301#issuecomment-143464948","issue_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/301","id":143464948,"user":{"login":"ralphbean","id":331338,"avatar_url":"https://avatars.githubusercontent.com/u/331338?v=3","gravatar_id":"","url":"https://api.github.com/users/ralphbean","html_url":"https://github.com/ralphbean","followers_url":"https://api.github.com/users/ralphbean/followers","following_url":"https://api.github.com/users/ralphbean/following{/other_user}","gists_url":"https://api.github.com/users/ralphbean/gists{/gist_id}","starred_url":"https://api.github.com/users/ralphbean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralphbean/subscriptions","organizations_url":"https://api.github.com/users/ralphbean/orgs","repos_url":"https://api.github.com/users/ralphbean/repos","events_url":"https://api.github.com/users/ralphbean/events{/privacy}","received_events_url":"https://api.github.com/users/ralphbean/received_events","type":"User","site_admin":false},"created_at":"2015-09-26T15:42:21Z","updated_at":"2015-09-26T15:42:21Z","body":"Well, there's lot of lazy loading declared in the models.  If I do the exact opposite and turn it all off, it doesn't get that much better.  The query times in ``get_updates`` drop dramatically, but then later when ``__json__`` is called, we spend just as much time making all the subsequent queries.  It's equivalent.  There's probably some ground in the middle that is the best of both worlds.\r\n\r\nWe could also consider trimming the number of relationships that the call to ``__json__`` traverses."}}