{"action":"opened","number":27,"pull_request":{"url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/pulls/27","id":182424461,"html_url":"https://github.com/Agrimatics/activemodel-datastore/pull/27","diff_url":"https://github.com/Agrimatics/activemodel-datastore/pull/27.diff","patch_url":"https://github.com/Agrimatics/activemodel-datastore/pull/27.patch","issue_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/issues/27","number":27,"state":"open","locked":false,"title":"add ActiveModel::Datastore.save_all feature","user":{"login":"shao1555","id":249170,"avatar_url":"https://avatars1.githubusercontent.com/u/249170?v=4","gravatar_id":"","url":"https://api.github.com/users/shao1555","html_url":"https://github.com/shao1555","followers_url":"https://api.github.com/users/shao1555/followers","following_url":"https://api.github.com/users/shao1555/following{/other_user}","gists_url":"https://api.github.com/users/shao1555/gists{/gist_id}","starred_url":"https://api.github.com/users/shao1555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shao1555/subscriptions","organizations_url":"https://api.github.com/users/shao1555/orgs","repos_url":"https://api.github.com/users/shao1555/repos","events_url":"https://api.github.com/users/shao1555/events{/privacy}","received_events_url":"https://api.github.com/users/shao1555/received_events","type":"User","site_admin":false},"body":"# Motivation\r\n\r\nI want to use bulk insert feature to improve performance.\r\n\r\n# Resolution\r\n\r\nimplement `ActiveModel::Datastore.save_all(entries)`\r\nin case of 500 records insertion, 200x faster than before.\r\n\r\n# Remark\r\n\r\nI'm not good for English. please feel free to update comment and document :)","created_at":"2018-04-18T09:50:56Z","updated_at":"2018-04-18T09:50:56Z","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/Agrimatics/activemodel-datastore/pulls/27/commits","review_comments_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/pulls/27/comments","review_comment_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/issues/27/comments","statuses_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/statuses/c642b8654d6ece394aa28495879362348f62fbd7","head":{"label":"shao1555:feature/batch-operation","ref":"feature/batch-operation","sha":"c642b8654d6ece394aa28495879362348f62fbd7","user":{"login":"shao1555","id":249170,"avatar_url":"https://avatars1.githubusercontent.com/u/249170?v=4","gravatar_id":"","url":"https://api.github.com/users/shao1555","html_url":"https://github.com/shao1555","followers_url":"https://api.github.com/users/shao1555/followers","following_url":"https://api.github.com/users/shao1555/following{/other_user}","gists_url":"https://api.github.com/users/shao1555/gists{/gist_id}","starred_url":"https://api.github.com/users/shao1555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shao1555/subscriptions","organizations_url":"https://api.github.com/users/shao1555/orgs","repos_url":"https://api.github.com/users/shao1555/repos","events_url":"https://api.github.com/users/shao1555/events{/privacy}","received_events_url":"https://api.github.com/users/shao1555/received_events","type":"User","site_admin":false},"repo":{"id":129855522,"name":"activemodel-datastore","full_name":"shao1555/activemodel-datastore","owner":{"login":"shao1555","id":249170,"avatar_url":"https://avatars1.githubusercontent.com/u/249170?v=4","gravatar_id":"","url":"https://api.github.com/users/shao1555","html_url":"https://github.com/shao1555","followers_url":"https://api.github.com/users/shao1555/followers","following_url":"https://api.github.com/users/shao1555/following{/other_user}","gists_url":"https://api.github.com/users/shao1555/gists{/gist_id}","starred_url":"https://api.github.com/users/shao1555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shao1555/subscriptions","organizations_url":"https://api.github.com/users/shao1555/orgs","repos_url":"https://api.github.com/users/shao1555/repos","events_url":"https://api.github.com/users/shao1555/events{/privacy}","received_events_url":"https://api.github.com/users/shao1555/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shao1555/activemodel-datastore","description":"Ruby on Rails with Active Model and Google Cloud Datastore. Extracted from Agrimatics Aero.","fork":true,"url":"https://api.github.com/repos/shao1555/activemodel-datastore","forks_url":"https://api.github.com/repos/shao1555/activemodel-datastore/forks","keys_url":"https://api.github.com/repos/shao1555/activemodel-datastore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shao1555/activemodel-datastore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shao1555/activemodel-datastore/teams","hooks_url":"https://api.github.com/repos/shao1555/activemodel-datastore/hooks","issue_events_url":"https://api.github.com/repos/shao1555/activemodel-datastore/issues/events{/number}","events_url":"https://api.github.com/repos/shao1555/activemodel-datastore/events","assignees_url":"https://api.github.com/repos/shao1555/activemodel-datastore/assignees{/user}","branches_url":"https://api.github.com/repos/shao1555/activemodel-datastore/branches{/branch}","tags_url":"https://api.github.com/repos/shao1555/activemodel-datastore/tags","blobs_url":"https://api.github.com/repos/shao1555/activemodel-datastore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shao1555/activemodel-datastore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shao1555/activemodel-datastore/git/refs{/sha}","trees_url":"https://api.github.com/repos/shao1555/activemodel-datastore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shao1555/activemodel-datastore/statuses/{sha}","languages_url":"https://api.github.com/repos/shao1555/activemodel-datastore/languages","stargazers_url":"https://api.github.com/repos/shao1555/activemodel-datastore/stargazers","contributors_url":"https://api.github.com/repos/shao1555/activemodel-datastore/contributors","subscribers_url":"https://api.github.com/repos/shao1555/activemodel-datastore/subscribers","subscription_url":"https://api.github.com/repos/shao1555/activemodel-datastore/subscription","commits_url":"https://api.github.com/repos/shao1555/activemodel-datastore/commits{/sha}","git_commits_url":"https://api.github.com/repos/shao1555/activemodel-datastore/git/commits{/sha}","comments_url":"https://api.github.com/repos/shao1555/activemodel-datastore/comments{/number}","issue_comment_url":"https://api.github.com/repos/shao1555/activemodel-datastore/issues/comments{/number}","contents_url":"https://api.github.com/repos/shao1555/activemodel-datastore/contents/{+path}","compare_url":"https://api.github.com/repos/shao1555/activemodel-datastore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shao1555/activemodel-datastore/merges","archive_url":"https://api.github.com/repos/shao1555/activemodel-datastore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shao1555/activemodel-datastore/downloads","issues_url":"https://api.github.com/repos/shao1555/activemodel-datastore/issues{/number}","pulls_url":"https://api.github.com/repos/shao1555/activemodel-datastore/pulls{/number}","milestones_url":"https://api.github.com/repos/shao1555/activemodel-datastore/milestones{/number}","notifications_url":"https://api.github.com/repos/shao1555/activemodel-datastore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shao1555/activemodel-datastore/labels{/name}","releases_url":"https://api.github.com/repos/shao1555/activemodel-datastore/releases{/id}","deployments_url":"https://api.github.com/repos/shao1555/activemodel-datastore/deployments","created_at":"2018-04-17T06:16:17Z","updated_at":"2018-04-18T04:42:27Z","pushed_at":"2018-04-18T09:34:23Z","git_url":"git://github.com/shao1555/activemodel-datastore.git","ssh_url":"git@github.com:shao1555/activemodel-datastore.git","clone_url":"https://github.com/shao1555/activemodel-datastore.git","svn_url":"https://github.com/shao1555/activemodel-datastore","homepage":"","size":353,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Agrimatics:master","ref":"master","sha":"0846bd743ce26abc7c4a282ded33057da7feb2c3","user":{"login":"Agrimatics","id":18310632,"avatar_url":"https://avatars2.githubusercontent.com/u/18310632?v=4","gravatar_id":"","url":"https://api.github.com/users/Agrimatics","html_url":"https://github.com/Agrimatics","followers_url":"https://api.github.com/users/Agrimatics/followers","following_url":"https://api.github.com/users/Agrimatics/following{/other_user}","gists_url":"https://api.github.com/users/Agrimatics/gists{/gist_id}","starred_url":"https://api.github.com/users/Agrimatics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Agrimatics/subscriptions","organizations_url":"https://api.github.com/users/Agrimatics/orgs","repos_url":"https://api.github.com/users/Agrimatics/repos","events_url":"https://api.github.com/users/Agrimatics/events{/privacy}","received_events_url":"https://api.github.com/users/Agrimatics/received_events","type":"Organization","site_admin":false},"repo":{"id":55617068,"name":"activemodel-datastore","full_name":"Agrimatics/activemodel-datastore","owner":{"login":"Agrimatics","id":18310632,"avatar_url":"https://avatars2.githubusercontent.com/u/18310632?v=4","gravatar_id":"","url":"https://api.github.com/users/Agrimatics","html_url":"https://github.com/Agrimatics","followers_url":"https://api.github.com/users/Agrimatics/followers","following_url":"https://api.github.com/users/Agrimatics/following{/other_user}","gists_url":"https://api.github.com/users/Agrimatics/gists{/gist_id}","starred_url":"https://api.github.com/users/Agrimatics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Agrimatics/subscriptions","organizations_url":"https://api.github.com/users/Agrimatics/orgs","repos_url":"https://api.github.com/users/Agrimatics/repos","events_url":"https://api.github.com/users/Agrimatics/events{/privacy}","received_events_url":"https://api.github.com/users/Agrimatics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Agrimatics/activemodel-datastore","description":"Ruby on Rails with Active Model and Google Cloud Datastore. Extracted from Agrimatics Aero.","fork":false,"url":"https://api.github.com/repos/Agrimatics/activemodel-datastore","forks_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/forks","keys_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/teams","hooks_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/hooks","issue_events_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/issues/events{/number}","events_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/events","assignees_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/assignees{/user}","branches_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/branches{/branch}","tags_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/tags","blobs_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/git/refs{/sha}","trees_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/statuses/{sha}","languages_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/languages","stargazers_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/stargazers","contributors_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/contributors","subscribers_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/subscribers","subscription_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/subscription","commits_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/commits{/sha}","git_commits_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/git/commits{/sha}","comments_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/comments{/number}","issue_comment_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/issues/comments{/number}","contents_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/contents/{+path}","compare_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/merges","archive_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/downloads","issues_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/issues{/number}","pulls_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/pulls{/number}","milestones_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/milestones{/number}","notifications_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/labels{/name}","releases_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/releases{/id}","deployments_url":"https://api.github.com/repos/Agrimatics/activemodel-datastore/deployments","created_at":"2016-04-06T15:19:50Z","updated_at":"2018-04-17T16:59:33Z","pushed_at":"2018-04-17T17:01:39Z","git_url":"git://github.com/Agrimatics/activemodel-datastore.git","ssh_url":"git@github.com:Agrimatics/activemodel-datastore.git","clone_url":"https://github.com/Agrimatics/activemodel-datastore.git","svn_url":"https://github.com/Agrimatics/activemodel-datastore","homepage":"","size":354,"stargazers_count":20,"watchers_count":20,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":10,"open_issues":5,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Agrimatics/activemodel-datastore/pulls/27"},"html":{"href":"https://github.com/Agrimatics/activemodel-datastore/pull/27"},"issue":{"href":"https://api.github.com/repos/Agrimatics/activemodel-datastore/issues/27"},"comments":{"href":"https://api.github.com/repos/Agrimatics/activemodel-datastore/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/Agrimatics/activemodel-datastore/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/Agrimatics/activemodel-datastore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Agrimatics/activemodel-datastore/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/Agrimatics/activemodel-datastore/statuses/c642b8654d6ece394aa28495879362348f62fbd7"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":133,"deletions":0,"changed_files":5}}
{"actor":{"display_login":"shao1555"}}