{"action":"opened","number":6891,"pull_request":{"url":"https://api.github.com/repos/pingcap/tidb/pulls/6891","id":196903048,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2OTAzMDQ4","html_url":"https://github.com/pingcap/tidb/pull/6891","diff_url":"https://github.com/pingcap/tidb/pull/6891.diff","patch_url":"https://github.com/pingcap/tidb/pull/6891.patch","issue_url":"https://api.github.com/repos/pingcap/tidb/issues/6891","number":6891,"state":"open","locked":false,"title":"executor: reduce memory usage of insert select from statement","user":{"login":"jackysp","id":4352397,"node_id":"MDQ6VXNlcjQzNTIzOTc=","avatar_url":"https://avatars1.githubusercontent.com/u/4352397?v=4","gravatar_id":"","url":"https://api.github.com/users/jackysp","html_url":"https://github.com/jackysp","followers_url":"https://api.github.com/users/jackysp/followers","following_url":"https://api.github.com/users/jackysp/following{/other_user}","gists_url":"https://api.github.com/users/jackysp/gists{/gist_id}","starred_url":"https://api.github.com/users/jackysp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackysp/subscriptions","organizations_url":"https://api.github.com/users/jackysp/orgs","repos_url":"https://api.github.com/users/jackysp/repos","events_url":"https://api.github.com/users/jackysp/events{/privacy}","received_events_url":"https://api.github.com/users/jackysp/received_events","type":"User","site_admin":false},"body":"## What have you changed? (mandatory)\r\nSplit select results into pieces to reduce memory usage in insert statement.\r\n\r\n## What are the type of the changes (mandatory)?\r\nimprovement\r\n\r\n## How has this PR been tested (mandatory)?\r\nuint test\r\n\r\nPTAL @coocood @zz-jason ","created_at":"2018-06-23T13:49:27Z","updated_at":"2018-06-23T13:49:27Z","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/pingcap/tidb/pulls/6891/commits","review_comments_url":"https://api.github.com/repos/pingcap/tidb/pulls/6891/comments","review_comment_url":"https://api.github.com/repos/pingcap/tidb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pingcap/tidb/issues/6891/comments","statuses_url":"https://api.github.com/repos/pingcap/tidb/statuses/22b4ab0e5bd43353e0dc5b23986bf32f4e8c8d12","head":{"label":"jackysp:insert_mem","ref":"insert_mem","sha":"22b4ab0e5bd43353e0dc5b23986bf32f4e8c8d12","user":{"login":"jackysp","id":4352397,"node_id":"MDQ6VXNlcjQzNTIzOTc=","avatar_url":"https://avatars1.githubusercontent.com/u/4352397?v=4","gravatar_id":"","url":"https://api.github.com/users/jackysp","html_url":"https://github.com/jackysp","followers_url":"https://api.github.com/users/jackysp/followers","following_url":"https://api.github.com/users/jackysp/following{/other_user}","gists_url":"https://api.github.com/users/jackysp/gists{/gist_id}","starred_url":"https://api.github.com/users/jackysp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackysp/subscriptions","organizations_url":"https://api.github.com/users/jackysp/orgs","repos_url":"https://api.github.com/users/jackysp/repos","events_url":"https://api.github.com/users/jackysp/events{/privacy}","received_events_url":"https://api.github.com/users/jackysp/received_events","type":"User","site_admin":false},"repo":{"id":107489534,"node_id":"MDEwOlJlcG9zaXRvcnkxMDc0ODk1MzQ=","name":"tidb","full_name":"jackysp/tidb","owner":{"login":"jackysp","id":4352397,"node_id":"MDQ6VXNlcjQzNTIzOTc=","avatar_url":"https://avatars1.githubusercontent.com/u/4352397?v=4","gravatar_id":"","url":"https://api.github.com/users/jackysp","html_url":"https://github.com/jackysp","followers_url":"https://api.github.com/users/jackysp/followers","following_url":"https://api.github.com/users/jackysp/following{/other_user}","gists_url":"https://api.github.com/users/jackysp/gists{/gist_id}","starred_url":"https://api.github.com/users/jackysp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackysp/subscriptions","organizations_url":"https://api.github.com/users/jackysp/orgs","repos_url":"https://api.github.com/users/jackysp/repos","events_url":"https://api.github.com/users/jackysp/events{/privacy}","received_events_url":"https://api.github.com/users/jackysp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jackysp/tidb","description":"TiDB is a distributed NewSQL database compatible with MySQL protocol ","fork":true,"url":"https://api.github.com/repos/jackysp/tidb","forks_url":"https://api.github.com/repos/jackysp/tidb/forks","keys_url":"https://api.github.com/repos/jackysp/tidb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jackysp/tidb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jackysp/tidb/teams","hooks_url":"https://api.github.com/repos/jackysp/tidb/hooks","issue_events_url":"https://api.github.com/repos/jackysp/tidb/issues/events{/number}","events_url":"https://api.github.com/repos/jackysp/tidb/events","assignees_url":"https://api.github.com/repos/jackysp/tidb/assignees{/user}","branches_url":"https://api.github.com/repos/jackysp/tidb/branches{/branch}","tags_url":"https://api.github.com/repos/jackysp/tidb/tags","blobs_url":"https://api.github.com/repos/jackysp/tidb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jackysp/tidb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jackysp/tidb/git/refs{/sha}","trees_url":"https://api.github.com/repos/jackysp/tidb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jackysp/tidb/statuses/{sha}","languages_url":"https://api.github.com/repos/jackysp/tidb/languages","stargazers_url":"https://api.github.com/repos/jackysp/tidb/stargazers","contributors_url":"https://api.github.com/repos/jackysp/tidb/contributors","subscribers_url":"https://api.github.com/repos/jackysp/tidb/subscribers","subscription_url":"https://api.github.com/repos/jackysp/tidb/subscription","commits_url":"https://api.github.com/repos/jackysp/tidb/commits{/sha}","git_commits_url":"https://api.github.com/repos/jackysp/tidb/git/commits{/sha}","comments_url":"https://api.github.com/repos/jackysp/tidb/comments{/number}","issue_comment_url":"https://api.github.com/repos/jackysp/tidb/issues/comments{/number}","contents_url":"https://api.github.com/repos/jackysp/tidb/contents/{+path}","compare_url":"https://api.github.com/repos/jackysp/tidb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jackysp/tidb/merges","archive_url":"https://api.github.com/repos/jackysp/tidb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jackysp/tidb/downloads","issues_url":"https://api.github.com/repos/jackysp/tidb/issues{/number}","pulls_url":"https://api.github.com/repos/jackysp/tidb/pulls{/number}","milestones_url":"https://api.github.com/repos/jackysp/tidb/milestones{/number}","notifications_url":"https://api.github.com/repos/jackysp/tidb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jackysp/tidb/labels{/name}","releases_url":"https://api.github.com/repos/jackysp/tidb/releases{/id}","deployments_url":"https://api.github.com/repos/jackysp/tidb/deployments","created_at":"2017-10-19T02:42:50Z","updated_at":"2018-01-02T09:38:26Z","pushed_at":"2018-06-23T13:33:42Z","git_url":"git://github.com/jackysp/tidb.git","ssh_url":"git@github.com:jackysp/tidb.git","clone_url":"https://github.com/jackysp/tidb.git","svn_url":"https://github.com/jackysp/tidb","homepage":"https://pingcap.com","size":49224,"stargazers_count":1,"watchers_count":1,"language":"Go","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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"pingcap:master","ref":"master","sha":"20c5675831ef0619956d1be5e11b4754c2632536","user":{"login":"pingcap","id":11855343,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExODU1MzQz","avatar_url":"https://avatars3.githubusercontent.com/u/11855343?v=4","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"repo":{"id":41986369,"node_id":"MDEwOlJlcG9zaXRvcnk0MTk4NjM2OQ==","name":"tidb","full_name":"pingcap/tidb","owner":{"login":"pingcap","id":11855343,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExODU1MzQz","avatar_url":"https://avatars3.githubusercontent.com/u/11855343?v=4","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pingcap/tidb","description":"TiDB is a distributed HTAP database compatible with the MySQL protocol ","fork":false,"url":"https://api.github.com/repos/pingcap/tidb","forks_url":"https://api.github.com/repos/pingcap/tidb/forks","keys_url":"https://api.github.com/repos/pingcap/tidb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pingcap/tidb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pingcap/tidb/teams","hooks_url":"https://api.github.com/repos/pingcap/tidb/hooks","issue_events_url":"https://api.github.com/repos/pingcap/tidb/issues/events{/number}","events_url":"https://api.github.com/repos/pingcap/tidb/events","assignees_url":"https://api.github.com/repos/pingcap/tidb/assignees{/user}","branches_url":"https://api.github.com/repos/pingcap/tidb/branches{/branch}","tags_url":"https://api.github.com/repos/pingcap/tidb/tags","blobs_url":"https://api.github.com/repos/pingcap/tidb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pingcap/tidb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pingcap/tidb/git/refs{/sha}","trees_url":"https://api.github.com/repos/pingcap/tidb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pingcap/tidb/statuses/{sha}","languages_url":"https://api.github.com/repos/pingcap/tidb/languages","stargazers_url":"https://api.github.com/repos/pingcap/tidb/stargazers","contributors_url":"https://api.github.com/repos/pingcap/tidb/contributors","subscribers_url":"https://api.github.com/repos/pingcap/tidb/subscribers","subscription_url":"https://api.github.com/repos/pingcap/tidb/subscription","commits_url":"https://api.github.com/repos/pingcap/tidb/commits{/sha}","git_commits_url":"https://api.github.com/repos/pingcap/tidb/git/commits{/sha}","comments_url":"https://api.github.com/repos/pingcap/tidb/comments{/number}","issue_comment_url":"https://api.github.com/repos/pingcap/tidb/issues/comments{/number}","contents_url":"https://api.github.com/repos/pingcap/tidb/contents/{+path}","compare_url":"https://api.github.com/repos/pingcap/tidb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pingcap/tidb/merges","archive_url":"https://api.github.com/repos/pingcap/tidb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pingcap/tidb/downloads","issues_url":"https://api.github.com/repos/pingcap/tidb/issues{/number}","pulls_url":"https://api.github.com/repos/pingcap/tidb/pulls{/number}","milestones_url":"https://api.github.com/repos/pingcap/tidb/milestones{/number}","notifications_url":"https://api.github.com/repos/pingcap/tidb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pingcap/tidb/labels{/name}","releases_url":"https://api.github.com/repos/pingcap/tidb/releases{/id}","deployments_url":"https://api.github.com/repos/pingcap/tidb/deployments","created_at":"2015-09-06T04:01:52Z","updated_at":"2018-06-23T13:33:21Z","pushed_at":"2018-06-23T12:53:58Z","git_url":"git://github.com/pingcap/tidb.git","ssh_url":"git@github.com:pingcap/tidb.git","clone_url":"https://github.com/pingcap/tidb.git","svn_url":"https://github.com/pingcap/tidb","homepage":"https://pingcap.com","size":75452,"stargazers_count":13786,"watchers_count":13786,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1878,"mirror_url":null,"archived":false,"open_issues_count":445,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1878,"open_issues":445,"watchers":13786,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pingcap/tidb/pulls/6891"},"html":{"href":"https://github.com/pingcap/tidb/pull/6891"},"issue":{"href":"https://api.github.com/repos/pingcap/tidb/issues/6891"},"comments":{"href":"https://api.github.com/repos/pingcap/tidb/issues/6891/comments"},"review_comments":{"href":"https://api.github.com/repos/pingcap/tidb/pulls/6891/comments"},"review_comment":{"href":"https://api.github.com/repos/pingcap/tidb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pingcap/tidb/pulls/6891/commits"},"statuses":{"href":"https://api.github.com/repos/pingcap/tidb/statuses/22b4ab0e5bd43353e0dc5b23986bf32f4e8c8d12"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":3,"additions":38,"deletions":36,"changed_files":3}}
{"actor":{"display_login":"jackysp"}}