{"action":"opened","number":781,"pull_request":{"url":"https://api.github.com/repos/LearningLocker/learninglocker/pulls/781","id":59842352,"html_url":"https://github.com/LearningLocker/learninglocker/pull/781","diff_url":"https://github.com/LearningLocker/learninglocker/pull/781.diff","patch_url":"https://github.com/LearningLocker/learninglocker/pull/781.patch","issue_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/781","number":781,"state":"open","locked":false,"title":"Talk directly to the MongoCollection to perform the active update","user":{"login":"ht2","id":1352590,"avatar_url":"https://avatars.githubusercontent.com/u/1352590?v=3","gravatar_id":"","url":"https://api.github.com/users/ht2","html_url":"https://github.com/ht2","followers_url":"https://api.github.com/users/ht2/followers","following_url":"https://api.github.com/users/ht2/following{/other_user}","gists_url":"https://api.github.com/users/ht2/gists{/gist_id}","starred_url":"https://api.github.com/users/ht2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ht2/subscriptions","organizations_url":"https://api.github.com/users/ht2/orgs","repos_url":"https://api.github.com/users/ht2/repos","events_url":"https://api.github.com/users/ht2/events{/privacy}","received_events_url":"https://api.github.com/users/ht2/received_events","type":"User","site_admin":false},"body":"The active update as constructed by the jenseggers/mongodb library was\r\nseen to wrap the entire criteria (query) in an $and key. This was\r\npreventing the database from utilising the index on the statement.id and\r\nlrs_id leading to slow updates when performing bulk inserts via the\r\nstatement API.","created_at":"2016-02-18T18:30:38Z","updated_at":"2016-02-18T18:30:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LearningLocker/learninglocker/pulls/781/commits","review_comments_url":"https://api.github.com/repos/LearningLocker/learninglocker/pulls/781/comments","review_comment_url":"https://api.github.com/repos/LearningLocker/learninglocker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/781/comments","statuses_url":"https://api.github.com/repos/LearningLocker/learninglocker/statuses/f2e88c4961a2de2d2b98694a6836632dec00088c","head":{"label":"LearningLocker:issue/unindexedUpdate","ref":"issue/unindexedUpdate","sha":"f2e88c4961a2de2d2b98694a6836632dec00088c","user":{"login":"LearningLocker","id":6530295,"avatar_url":"https://avatars.githubusercontent.com/u/6530295?v=3","gravatar_id":"","url":"https://api.github.com/users/LearningLocker","html_url":"https://github.com/LearningLocker","followers_url":"https://api.github.com/users/LearningLocker/followers","following_url":"https://api.github.com/users/LearningLocker/following{/other_user}","gists_url":"https://api.github.com/users/LearningLocker/gists{/gist_id}","starred_url":"https://api.github.com/users/LearningLocker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LearningLocker/subscriptions","organizations_url":"https://api.github.com/users/LearningLocker/orgs","repos_url":"https://api.github.com/users/LearningLocker/repos","events_url":"https://api.github.com/users/LearningLocker/events{/privacy}","received_events_url":"https://api.github.com/users/LearningLocker/received_events","type":"Organization","site_admin":false},"repo":{"id":16348598,"name":"learninglocker","full_name":"LearningLocker/learninglocker","owner":{"login":"LearningLocker","id":6530295,"avatar_url":"https://avatars.githubusercontent.com/u/6530295?v=3","gravatar_id":"","url":"https://api.github.com/users/LearningLocker","html_url":"https://github.com/LearningLocker","followers_url":"https://api.github.com/users/LearningLocker/followers","following_url":"https://api.github.com/users/LearningLocker/following{/other_user}","gists_url":"https://api.github.com/users/LearningLocker/gists{/gist_id}","starred_url":"https://api.github.com/users/LearningLocker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LearningLocker/subscriptions","organizations_url":"https://api.github.com/users/LearningLocker/orgs","repos_url":"https://api.github.com/users/LearningLocker/repos","events_url":"https://api.github.com/users/LearningLocker/events{/privacy}","received_events_url":"https://api.github.com/users/LearningLocker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LearningLocker/learninglocker","description":"The open source learning record store","fork":false,"url":"https://api.github.com/repos/LearningLocker/learninglocker","forks_url":"https://api.github.com/repos/LearningLocker/learninglocker/forks","keys_url":"https://api.github.com/repos/LearningLocker/learninglocker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LearningLocker/learninglocker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LearningLocker/learninglocker/teams","hooks_url":"https://api.github.com/repos/LearningLocker/learninglocker/hooks","issue_events_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/events{/number}","events_url":"https://api.github.com/repos/LearningLocker/learninglocker/events","assignees_url":"https://api.github.com/repos/LearningLocker/learninglocker/assignees{/user}","branches_url":"https://api.github.com/repos/LearningLocker/learninglocker/branches{/branch}","tags_url":"https://api.github.com/repos/LearningLocker/learninglocker/tags","blobs_url":"https://api.github.com/repos/LearningLocker/learninglocker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LearningLocker/learninglocker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LearningLocker/learninglocker/git/refs{/sha}","trees_url":"https://api.github.com/repos/LearningLocker/learninglocker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LearningLocker/learninglocker/statuses/{sha}","languages_url":"https://api.github.com/repos/LearningLocker/learninglocker/languages","stargazers_url":"https://api.github.com/repos/LearningLocker/learninglocker/stargazers","contributors_url":"https://api.github.com/repos/LearningLocker/learninglocker/contributors","subscribers_url":"https://api.github.com/repos/LearningLocker/learninglocker/subscribers","subscription_url":"https://api.github.com/repos/LearningLocker/learninglocker/subscription","commits_url":"https://api.github.com/repos/LearningLocker/learninglocker/commits{/sha}","git_commits_url":"https://api.github.com/repos/LearningLocker/learninglocker/git/commits{/sha}","comments_url":"https://api.github.com/repos/LearningLocker/learninglocker/comments{/number}","issue_comment_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/comments{/number}","contents_url":"https://api.github.com/repos/LearningLocker/learninglocker/contents/{+path}","compare_url":"https://api.github.com/repos/LearningLocker/learninglocker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LearningLocker/learninglocker/merges","archive_url":"https://api.github.com/repos/LearningLocker/learninglocker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LearningLocker/learninglocker/downloads","issues_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues{/number}","pulls_url":"https://api.github.com/repos/LearningLocker/learninglocker/pulls{/number}","milestones_url":"https://api.github.com/repos/LearningLocker/learninglocker/milestones{/number}","notifications_url":"https://api.github.com/repos/LearningLocker/learninglocker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LearningLocker/learninglocker/labels{/name}","releases_url":"https://api.github.com/repos/LearningLocker/learninglocker/releases{/id}","deployments_url":"https://api.github.com/repos/LearningLocker/learninglocker/deployments","created_at":"2014-01-29T15:20:14Z","updated_at":"2016-02-16T10:14:30Z","pushed_at":"2016-02-18T18:30:11Z","git_url":"git://github.com/LearningLocker/learninglocker.git","ssh_url":"git@github.com:LearningLocker/learninglocker.git","clone_url":"https://github.com/LearningLocker/learninglocker.git","svn_url":"https://github.com/LearningLocker/learninglocker","homepage":null,"size":20266,"stargazers_count":144,"watchers_count":144,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":18,"forks":81,"open_issues":18,"watchers":144,"default_branch":"develop"}},"base":{"label":"LearningLocker:develop","ref":"develop","sha":"d75b13de01241b3c3843d759b458dbb0905c1814","user":{"login":"LearningLocker","id":6530295,"avatar_url":"https://avatars.githubusercontent.com/u/6530295?v=3","gravatar_id":"","url":"https://api.github.com/users/LearningLocker","html_url":"https://github.com/LearningLocker","followers_url":"https://api.github.com/users/LearningLocker/followers","following_url":"https://api.github.com/users/LearningLocker/following{/other_user}","gists_url":"https://api.github.com/users/LearningLocker/gists{/gist_id}","starred_url":"https://api.github.com/users/LearningLocker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LearningLocker/subscriptions","organizations_url":"https://api.github.com/users/LearningLocker/orgs","repos_url":"https://api.github.com/users/LearningLocker/repos","events_url":"https://api.github.com/users/LearningLocker/events{/privacy}","received_events_url":"https://api.github.com/users/LearningLocker/received_events","type":"Organization","site_admin":false},"repo":{"id":16348598,"name":"learninglocker","full_name":"LearningLocker/learninglocker","owner":{"login":"LearningLocker","id":6530295,"avatar_url":"https://avatars.githubusercontent.com/u/6530295?v=3","gravatar_id":"","url":"https://api.github.com/users/LearningLocker","html_url":"https://github.com/LearningLocker","followers_url":"https://api.github.com/users/LearningLocker/followers","following_url":"https://api.github.com/users/LearningLocker/following{/other_user}","gists_url":"https://api.github.com/users/LearningLocker/gists{/gist_id}","starred_url":"https://api.github.com/users/LearningLocker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LearningLocker/subscriptions","organizations_url":"https://api.github.com/users/LearningLocker/orgs","repos_url":"https://api.github.com/users/LearningLocker/repos","events_url":"https://api.github.com/users/LearningLocker/events{/privacy}","received_events_url":"https://api.github.com/users/LearningLocker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LearningLocker/learninglocker","description":"The open source learning record store","fork":false,"url":"https://api.github.com/repos/LearningLocker/learninglocker","forks_url":"https://api.github.com/repos/LearningLocker/learninglocker/forks","keys_url":"https://api.github.com/repos/LearningLocker/learninglocker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LearningLocker/learninglocker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LearningLocker/learninglocker/teams","hooks_url":"https://api.github.com/repos/LearningLocker/learninglocker/hooks","issue_events_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/events{/number}","events_url":"https://api.github.com/repos/LearningLocker/learninglocker/events","assignees_url":"https://api.github.com/repos/LearningLocker/learninglocker/assignees{/user}","branches_url":"https://api.github.com/repos/LearningLocker/learninglocker/branches{/branch}","tags_url":"https://api.github.com/repos/LearningLocker/learninglocker/tags","blobs_url":"https://api.github.com/repos/LearningLocker/learninglocker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LearningLocker/learninglocker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LearningLocker/learninglocker/git/refs{/sha}","trees_url":"https://api.github.com/repos/LearningLocker/learninglocker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LearningLocker/learninglocker/statuses/{sha}","languages_url":"https://api.github.com/repos/LearningLocker/learninglocker/languages","stargazers_url":"https://api.github.com/repos/LearningLocker/learninglocker/stargazers","contributors_url":"https://api.github.com/repos/LearningLocker/learninglocker/contributors","subscribers_url":"https://api.github.com/repos/LearningLocker/learninglocker/subscribers","subscription_url":"https://api.github.com/repos/LearningLocker/learninglocker/subscription","commits_url":"https://api.github.com/repos/LearningLocker/learninglocker/commits{/sha}","git_commits_url":"https://api.github.com/repos/LearningLocker/learninglocker/git/commits{/sha}","comments_url":"https://api.github.com/repos/LearningLocker/learninglocker/comments{/number}","issue_comment_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues/comments{/number}","contents_url":"https://api.github.com/repos/LearningLocker/learninglocker/contents/{+path}","compare_url":"https://api.github.com/repos/LearningLocker/learninglocker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LearningLocker/learninglocker/merges","archive_url":"https://api.github.com/repos/LearningLocker/learninglocker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LearningLocker/learninglocker/downloads","issues_url":"https://api.github.com/repos/LearningLocker/learninglocker/issues{/number}","pulls_url":"https://api.github.com/repos/LearningLocker/learninglocker/pulls{/number}","milestones_url":"https://api.github.com/repos/LearningLocker/learninglocker/milestones{/number}","notifications_url":"https://api.github.com/repos/LearningLocker/learninglocker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LearningLocker/learninglocker/labels{/name}","releases_url":"https://api.github.com/repos/LearningLocker/learninglocker/releases{/id}","deployments_url":"https://api.github.com/repos/LearningLocker/learninglocker/deployments","created_at":"2014-01-29T15:20:14Z","updated_at":"2016-02-16T10:14:30Z","pushed_at":"2016-02-18T18:30:11Z","git_url":"git://github.com/LearningLocker/learninglocker.git","ssh_url":"git@github.com:LearningLocker/learninglocker.git","clone_url":"https://github.com/LearningLocker/learninglocker.git","svn_url":"https://github.com/LearningLocker/learninglocker","homepage":null,"size":20266,"stargazers_count":144,"watchers_count":144,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":18,"forks":81,"open_issues":18,"watchers":144,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/LearningLocker/learninglocker/pulls/781"},"html":{"href":"https://github.com/LearningLocker/learninglocker/pull/781"},"issue":{"href":"https://api.github.com/repos/LearningLocker/learninglocker/issues/781"},"comments":{"href":"https://api.github.com/repos/LearningLocker/learninglocker/issues/781/comments"},"review_comments":{"href":"https://api.github.com/repos/LearningLocker/learninglocker/pulls/781/comments"},"review_comment":{"href":"https://api.github.com/repos/LearningLocker/learninglocker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LearningLocker/learninglocker/pulls/781/commits"},"statuses":{"href":"https://api.github.com/repos/LearningLocker/learninglocker/statuses/f2e88c4961a2de2d2b98694a6836632dec00088c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":33,"deletions":3,"changed_files":2}}