{"action":"created","issue":{"url":"https://api.github.com/repos/dpla/primary-source-sets/issues/165","repository_url":"https://api.github.com/repos/dpla/primary-source-sets","labels_url":"https://api.github.com/repos/dpla/primary-source-sets/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/dpla/primary-source-sets/issues/165/comments","events_url":"https://api.github.com/repos/dpla/primary-source-sets/issues/165/events","html_url":"https://github.com/dpla/primary-source-sets/pull/165","id":153874708,"number":165,"title":"Feature/optimize db calls","user":{"login":"AudreyAltman","id":3615206,"avatar_url":"https://avatars.githubusercontent.com/u/3615206?v=3","gravatar_id":"","url":"https://api.github.com/users/AudreyAltman","html_url":"https://github.com/AudreyAltman","followers_url":"https://api.github.com/users/AudreyAltman/followers","following_url":"https://api.github.com/users/AudreyAltman/following{/other_user}","gists_url":"https://api.github.com/users/AudreyAltman/gists{/gist_id}","starred_url":"https://api.github.com/users/AudreyAltman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AudreyAltman/subscriptions","organizations_url":"https://api.github.com/users/AudreyAltman/orgs","repos_url":"https://api.github.com/users/AudreyAltman/repos","events_url":"https://api.github.com/users/AudreyAltman/events{/privacy}","received_events_url":"https://api.github.com/users/AudreyAltman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"moltude","id":1419766,"avatar_url":"https://avatars.githubusercontent.com/u/1419766?v=3","gravatar_id":"","url":"https://api.github.com/users/moltude","html_url":"https://github.com/moltude","followers_url":"https://api.github.com/users/moltude/followers","following_url":"https://api.github.com/users/moltude/following{/other_user}","gists_url":"https://api.github.com/users/moltude/gists{/gist_id}","starred_url":"https://api.github.com/users/moltude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moltude/subscriptions","organizations_url":"https://api.github.com/users/moltude/orgs","repos_url":"https://api.github.com/users/moltude/repos","events_url":"https://api.github.com/users/moltude/events{/privacy}","received_events_url":"https://api.github.com/users/moltude/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-05-09T21:30:40Z","updated_at":"2016-05-13T14:05:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dpla/primary-source-sets/pulls/165","html_url":"https://github.com/dpla/primary-source-sets/pull/165","diff_url":"https://github.com/dpla/primary-source-sets/pull/165.diff","patch_url":"https://github.com/dpla/primary-source-sets/pull/165.patch"},"body":"This optimizes calls to the database by refactoring to reduce the total number of database calls, and eager loading objects with `includes`.  I hope that it will reduce page load time.  \r\n\r\nThis has been tested locally.  It addresses [#8259](https://issues.dp.la/issues/8259)."},"comment":{"url":"https://api.github.com/repos/dpla/primary-source-sets/issues/comments/219052447","html_url":"https://github.com/dpla/primary-source-sets/pull/165#issuecomment-219052447","issue_url":"https://api.github.com/repos/dpla/primary-source-sets/issues/165","id":219052447,"user":{"login":"AudreyAltman","id":3615206,"avatar_url":"https://avatars.githubusercontent.com/u/3615206?v=3","gravatar_id":"","url":"https://api.github.com/users/AudreyAltman","html_url":"https://github.com/AudreyAltman","followers_url":"https://api.github.com/users/AudreyAltman/followers","following_url":"https://api.github.com/users/AudreyAltman/following{/other_user}","gists_url":"https://api.github.com/users/AudreyAltman/gists{/gist_id}","starred_url":"https://api.github.com/users/AudreyAltman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AudreyAltman/subscriptions","organizations_url":"https://api.github.com/users/AudreyAltman/orgs","repos_url":"https://api.github.com/users/AudreyAltman/repos","events_url":"https://api.github.com/users/AudreyAltman/events{/privacy}","received_events_url":"https://api.github.com/users/AudreyAltman/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T14:05:15Z","updated_at":"2016-05-13T14:05:15Z","body":"I found a bug in this, so please hold off merging until I can fix it!"}}