{"action":"opened","number":52,"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/keyworker-service/pulls/52","id":177957030,"html_url":"https://github.com/ministryofjustice/keyworker-service/pull/52","diff_url":"https://github.com/ministryofjustice/keyworker-service/pull/52.diff","patch_url":"https://github.com/ministryofjustice/keyworker-service/pull/52.patch","issue_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/issues/52","number":52,"state":"open","locked":false,"title":"NN_636 indexes for discussion","user":{"login":"lbennett-moj","id":34441186,"avatar_url":"https://avatars3.githubusercontent.com/u/34441186?v=4","gravatar_id":"","url":"https://api.github.com/users/lbennett-moj","html_url":"https://github.com/lbennett-moj","followers_url":"https://api.github.com/users/lbennett-moj/followers","following_url":"https://api.github.com/users/lbennett-moj/following{/other_user}","gists_url":"https://api.github.com/users/lbennett-moj/gists{/gist_id}","starred_url":"https://api.github.com/users/lbennett-moj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbennett-moj/subscriptions","organizations_url":"https://api.github.com/users/lbennett-moj/orgs","repos_url":"https://api.github.com/users/lbennett-moj/repos","events_url":"https://api.github.com/users/lbennett-moj/events{/privacy}","received_events_url":"https://api.github.com/users/lbennett-moj/received_events","type":"User","site_admin":false},"body":"@Mjwillis \r\n\r\nApart from the primary key indexes we get for free, I've added indexes on the ids used in the common queries.  I'm not sure it is worth adding multiple column indexes as this stage without any large datasets to test against.","created_at":"2018-03-28T07:58:01Z","updated_at":"2018-03-28T07:58:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/pulls/52/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/pulls/52/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/issues/52/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/statuses/6a08f98a0c64cd89fecd17b5088452d865f101c9","head":{"label":"ministryofjustice:NN_636","ref":"NN_636","sha":"6a08f98a0c64cd89fecd17b5088452d865f101c9","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":118432830,"name":"keyworker-service","full_name":"ministryofjustice/keyworker-service","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/keyworker-service","description":"OMIC Keyworker Service","fork":false,"url":"https://api.github.com/repos/ministryofjustice/keyworker-service","forks_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/forks","keys_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/events","assignees_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/merges","archive_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/deployments","created_at":"2018-01-22T09:08:31Z","updated_at":"2018-03-27T12:30:30Z","pushed_at":"2018-03-28T07:54:08Z","git_url":"git://github.com/ministryofjustice/keyworker-service.git","ssh_url":"git@github.com:ministryofjustice/keyworker-service.git","clone_url":"https://github.com/ministryofjustice/keyworker-service.git","svn_url":"https://github.com/ministryofjustice/keyworker-service","homepage":null,"size":407,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"b0d95e24deeaca42fcefcb75bd9408ddf22ab5c8","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":118432830,"name":"keyworker-service","full_name":"ministryofjustice/keyworker-service","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/keyworker-service","description":"OMIC Keyworker Service","fork":false,"url":"https://api.github.com/repos/ministryofjustice/keyworker-service","forks_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/forks","keys_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/events","assignees_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/merges","archive_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/keyworker-service/deployments","created_at":"2018-01-22T09:08:31Z","updated_at":"2018-03-27T12:30:30Z","pushed_at":"2018-03-28T07:54:08Z","git_url":"git://github.com/ministryofjustice/keyworker-service.git","ssh_url":"git@github.com:ministryofjustice/keyworker-service.git","clone_url":"https://github.com/ministryofjustice/keyworker-service.git","svn_url":"https://github.com/ministryofjustice/keyworker-service","homepage":null,"size":407,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/keyworker-service/pulls/52"},"html":{"href":"https://github.com/ministryofjustice/keyworker-service/pull/52"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/keyworker-service/issues/52"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/keyworker-service/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/keyworker-service/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/keyworker-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/keyworker-service/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/keyworker-service/statuses/6a08f98a0c64cd89fecd17b5088452d865f101c9"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":4,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"lbennett-moj"}}