{"action":"created","issue":{"url":"https://api.github.com/repos/catatsuy/private-isu/issues/58","repository_url":"https://api.github.com/repos/catatsuy/private-isu","labels_url":"https://api.github.com/repos/catatsuy/private-isu/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/catatsuy/private-isu/issues/58/comments","events_url":"https://api.github.com/repos/catatsuy/private-isu/issues/58/events","html_url":"https://github.com/catatsuy/private-isu/pull/58","id":138740862,"number":58,"title":"絶妙な遅さにする","user":{"login":"edvakf","id":28143,"avatar_url":"https://avatars.githubusercontent.com/u/28143?v=3","gravatar_id":"","url":"https://api.github.com/users/edvakf","html_url":"https://github.com/edvakf","followers_url":"https://api.github.com/users/edvakf/followers","following_url":"https://api.github.com/users/edvakf/following{/other_user}","gists_url":"https://api.github.com/users/edvakf/gists{/gist_id}","starred_url":"https://api.github.com/users/edvakf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edvakf/subscriptions","organizations_url":"https://api.github.com/users/edvakf/orgs","repos_url":"https://api.github.com/users/edvakf/repos","events_url":"https://api.github.com/users/edvakf/events{/privacy}","received_events_url":"https://api.github.com/users/edvakf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"catatsuy","id":1249910,"avatar_url":"https://avatars.githubusercontent.com/u/1249910?v=3","gravatar_id":"","url":"https://api.github.com/users/catatsuy","html_url":"https://github.com/catatsuy","followers_url":"https://api.github.com/users/catatsuy/followers","following_url":"https://api.github.com/users/catatsuy/following{/other_user}","gists_url":"https://api.github.com/users/catatsuy/gists{/gist_id}","starred_url":"https://api.github.com/users/catatsuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catatsuy/subscriptions","organizations_url":"https://api.github.com/users/catatsuy/orgs","repos_url":"https://api.github.com/users/catatsuy/repos","events_url":"https://api.github.com/users/catatsuy/events{/privacy}","received_events_url":"https://api.github.com/users/catatsuy/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-03-06T01:03:26Z","updated_at":"2016-03-06T03:33:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/catatsuy/private-isu/pulls/58","html_url":"https://github.com/catatsuy/private-isu/pull/58","diff_url":"https://github.com/catatsuy/private-isu/pull/58.diff","patch_url":"https://github.com/catatsuy/private-isu/pull/58.patch"},"body":"やったこと\r\n\r\n* タイムラインを作るときは画像データを取得しないようにして巨大な転送が起こらないようにする\r\n* commentsを全件取得して連想配列に詰めなおしてたのが遅すぎたので、ふつうのN+1クエリに変更\r\n* タイムラインではコメントを3件までしか表示しないようにする（そうじゃないとカウントを出してる意味が無い）\r\n* usersも全件取得して連想配列アクセスするのではなくN+1クエリにする\r\n* / と /posts で同じ実装なのでメソッドに切り出す\r\n* 1文字の変数を減らす\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/catatsuy/private-isu/issues/comments/192795327","html_url":"https://github.com/catatsuy/private-isu/pull/58#issuecomment-192795327","issue_url":"https://api.github.com/repos/catatsuy/private-isu/issues/58","id":192795327,"user":{"login":"edvakf","id":28143,"avatar_url":"https://avatars.githubusercontent.com/u/28143?v=3","gravatar_id":"","url":"https://api.github.com/users/edvakf","html_url":"https://github.com/edvakf","followers_url":"https://api.github.com/users/edvakf/followers","following_url":"https://api.github.com/users/edvakf/following{/other_user}","gists_url":"https://api.github.com/users/edvakf/gists{/gist_id}","starred_url":"https://api.github.com/users/edvakf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edvakf/subscriptions","organizations_url":"https://api.github.com/users/edvakf/orgs","repos_url":"https://api.github.com/users/edvakf/repos","events_url":"https://api.github.com/users/edvakf/events{/privacy}","received_events_url":"https://api.github.com/users/edvakf/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T03:33:23Z","updated_at":"2016-03-06T03:33:23Z","body":"mypageが超絶遅いな。"}}