{"action":"opened","number":3206,"pull_request":{"url":"https://api.github.com/repos/pingcap/tikv/pulls/3206","id":194799053,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0Nzk5MDUz","html_url":"https://github.com/pingcap/tikv/pull/3206","diff_url":"https://github.com/pingcap/tikv/pull/3206.diff","patch_url":"https://github.com/pingcap/tikv/pull/3206.patch","issue_url":"https://api.github.com/repos/pingcap/tikv/issues/3206","number":3206,"state":"open","locked":false,"title":"coprocessor: collect row count for each index prefix","user":{"login":"lamxTyler","id":16222711,"node_id":"MDQ6VXNlcjE2MjIyNzEx","avatar_url":"https://avatars1.githubusercontent.com/u/16222711?v=4","gravatar_id":"","url":"https://api.github.com/users/lamxTyler","html_url":"https://github.com/lamxTyler","followers_url":"https://api.github.com/users/lamxTyler/followers","following_url":"https://api.github.com/users/lamxTyler/following{/other_user}","gists_url":"https://api.github.com/users/lamxTyler/gists{/gist_id}","starred_url":"https://api.github.com/users/lamxTyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamxTyler/subscriptions","organizations_url":"https://api.github.com/users/lamxTyler/orgs","repos_url":"https://api.github.com/users/lamxTyler/repos","events_url":"https://api.github.com/users/lamxTyler/events{/privacy}","received_events_url":"https://api.github.com/users/lamxTyler/received_events","type":"User","site_admin":false},"body":"<!--\r\nThank you for contributing to TiKV! Please read TiKV's [CONTRIBUTING](https://github.com/pingcap/tikv/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.\r\n-->\r\n\r\n## What have you changed? (mandatory)\r\n\r\nIn the before, we only record the row count for the whole index, this pr also records the row count for each index prefix. Therefore, for an index (a, b, c), not only could we know the row count for (a = 1 and b = 1 and c = 1), but also the row count for (a = 1) or (a = 1 and b = 1).\r\n\r\n## What are the type of the changes? (mandatory)\r\n\r\n- Improvement (non-breaking change which is an improvement to an existing feature)\r\n\r\n## How has this PR been tested? (mandatory)\r\n\r\nunit test and integration test with tidb.\r\n\r\n## Does this PR affect documentation (docs/docs-cn) update? (mandatory)\r\n\r\nNo.\r\n\r\n## Does this PR affect tidb-ansible update? (mandatory)\r\n\r\nNo.\r\n\r\nPTAL @AndreMouche @coocood ","created_at":"2018-06-14T07:18:36Z","updated_at":"2018-06-14T07:18:36Z","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/tikv/pulls/3206/commits","review_comments_url":"https://api.github.com/repos/pingcap/tikv/pulls/3206/comments","review_comment_url":"https://api.github.com/repos/pingcap/tikv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pingcap/tikv/issues/3206/comments","statuses_url":"https://api.github.com/repos/pingcap/tikv/statuses/5bba7a5ba1eb36d2aa1f436dc6d014c4c8ab9403","head":{"label":"lamxTyler:cmsketch","ref":"cmsketch","sha":"5bba7a5ba1eb36d2aa1f436dc6d014c4c8ab9403","user":{"login":"lamxTyler","id":16222711,"node_id":"MDQ6VXNlcjE2MjIyNzEx","avatar_url":"https://avatars1.githubusercontent.com/u/16222711?v=4","gravatar_id":"","url":"https://api.github.com/users/lamxTyler","html_url":"https://github.com/lamxTyler","followers_url":"https://api.github.com/users/lamxTyler/followers","following_url":"https://api.github.com/users/lamxTyler/following{/other_user}","gists_url":"https://api.github.com/users/lamxTyler/gists{/gist_id}","starred_url":"https://api.github.com/users/lamxTyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamxTyler/subscriptions","organizations_url":"https://api.github.com/users/lamxTyler/orgs","repos_url":"https://api.github.com/users/lamxTyler/repos","events_url":"https://api.github.com/users/lamxTyler/events{/privacy}","received_events_url":"https://api.github.com/users/lamxTyler/received_events","type":"User","site_admin":false},"repo":{"id":110190778,"node_id":"MDEwOlJlcG9zaXRvcnkxMTAxOTA3Nzg=","name":"tikv","full_name":"lamxTyler/tikv","owner":{"login":"lamxTyler","id":16222711,"node_id":"MDQ6VXNlcjE2MjIyNzEx","avatar_url":"https://avatars1.githubusercontent.com/u/16222711?v=4","gravatar_id":"","url":"https://api.github.com/users/lamxTyler","html_url":"https://github.com/lamxTyler","followers_url":"https://api.github.com/users/lamxTyler/followers","following_url":"https://api.github.com/users/lamxTyler/following{/other_user}","gists_url":"https://api.github.com/users/lamxTyler/gists{/gist_id}","starred_url":"https://api.github.com/users/lamxTyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamxTyler/subscriptions","organizations_url":"https://api.github.com/users/lamxTyler/orgs","repos_url":"https://api.github.com/users/lamxTyler/repos","events_url":"https://api.github.com/users/lamxTyler/events{/privacy}","received_events_url":"https://api.github.com/users/lamxTyler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lamxTyler/tikv","description":"Distributed transactional key value database powered by Rust and Raft","fork":true,"url":"https://api.github.com/repos/lamxTyler/tikv","forks_url":"https://api.github.com/repos/lamxTyler/tikv/forks","keys_url":"https://api.github.com/repos/lamxTyler/tikv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lamxTyler/tikv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lamxTyler/tikv/teams","hooks_url":"https://api.github.com/repos/lamxTyler/tikv/hooks","issue_events_url":"https://api.github.com/repos/lamxTyler/tikv/issues/events{/number}","events_url":"https://api.github.com/repos/lamxTyler/tikv/events","assignees_url":"https://api.github.com/repos/lamxTyler/tikv/assignees{/user}","branches_url":"https://api.github.com/repos/lamxTyler/tikv/branches{/branch}","tags_url":"https://api.github.com/repos/lamxTyler/tikv/tags","blobs_url":"https://api.github.com/repos/lamxTyler/tikv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lamxTyler/tikv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lamxTyler/tikv/git/refs{/sha}","trees_url":"https://api.github.com/repos/lamxTyler/tikv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lamxTyler/tikv/statuses/{sha}","languages_url":"https://api.github.com/repos/lamxTyler/tikv/languages","stargazers_url":"https://api.github.com/repos/lamxTyler/tikv/stargazers","contributors_url":"https://api.github.com/repos/lamxTyler/tikv/contributors","subscribers_url":"https://api.github.com/repos/lamxTyler/tikv/subscribers","subscription_url":"https://api.github.com/repos/lamxTyler/tikv/subscription","commits_url":"https://api.github.com/repos/lamxTyler/tikv/commits{/sha}","git_commits_url":"https://api.github.com/repos/lamxTyler/tikv/git/commits{/sha}","comments_url":"https://api.github.com/repos/lamxTyler/tikv/comments{/number}","issue_comment_url":"https://api.github.com/repos/lamxTyler/tikv/issues/comments{/number}","contents_url":"https://api.github.com/repos/lamxTyler/tikv/contents/{+path}","compare_url":"https://api.github.com/repos/lamxTyler/tikv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lamxTyler/tikv/merges","archive_url":"https://api.github.com/repos/lamxTyler/tikv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lamxTyler/tikv/downloads","issues_url":"https://api.github.com/repos/lamxTyler/tikv/issues{/number}","pulls_url":"https://api.github.com/repos/lamxTyler/tikv/pulls{/number}","milestones_url":"https://api.github.com/repos/lamxTyler/tikv/milestones{/number}","notifications_url":"https://api.github.com/repos/lamxTyler/tikv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lamxTyler/tikv/labels{/name}","releases_url":"https://api.github.com/repos/lamxTyler/tikv/releases{/id}","deployments_url":"https://api.github.com/repos/lamxTyler/tikv/deployments","created_at":"2017-11-10T02:11:39Z","updated_at":"2018-03-28T06:43:37Z","pushed_at":"2018-06-14T07:04:25Z","git_url":"git://github.com/lamxTyler/tikv.git","ssh_url":"git@github.com:lamxTyler/tikv.git","clone_url":"https://github.com/lamxTyler/tikv.git","svn_url":"https://github.com/lamxTyler/tikv","homepage":"https://pingcap.com","size":13258,"stargazers_count":0,"watchers_count":0,"language":"Rust","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":0,"default_branch":"master"}},"base":{"label":"pingcap:master","ref":"master","sha":"3e97c269e545778112a0024c8dcb71dedc2cf137","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":48833910,"node_id":"MDEwOlJlcG9zaXRvcnk0ODgzMzkxMA==","name":"tikv","full_name":"pingcap/tikv","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/tikv","description":"Distributed transactional key value database powered by Rust and Raft","fork":false,"url":"https://api.github.com/repos/pingcap/tikv","forks_url":"https://api.github.com/repos/pingcap/tikv/forks","keys_url":"https://api.github.com/repos/pingcap/tikv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pingcap/tikv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pingcap/tikv/teams","hooks_url":"https://api.github.com/repos/pingcap/tikv/hooks","issue_events_url":"https://api.github.com/repos/pingcap/tikv/issues/events{/number}","events_url":"https://api.github.com/repos/pingcap/tikv/events","assignees_url":"https://api.github.com/repos/pingcap/tikv/assignees{/user}","branches_url":"https://api.github.com/repos/pingcap/tikv/branches{/branch}","tags_url":"https://api.github.com/repos/pingcap/tikv/tags","blobs_url":"https://api.github.com/repos/pingcap/tikv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pingcap/tikv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pingcap/tikv/git/refs{/sha}","trees_url":"https://api.github.com/repos/pingcap/tikv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pingcap/tikv/statuses/{sha}","languages_url":"https://api.github.com/repos/pingcap/tikv/languages","stargazers_url":"https://api.github.com/repos/pingcap/tikv/stargazers","contributors_url":"https://api.github.com/repos/pingcap/tikv/contributors","subscribers_url":"https://api.github.com/repos/pingcap/tikv/subscribers","subscription_url":"https://api.github.com/repos/pingcap/tikv/subscription","commits_url":"https://api.github.com/repos/pingcap/tikv/commits{/sha}","git_commits_url":"https://api.github.com/repos/pingcap/tikv/git/commits{/sha}","comments_url":"https://api.github.com/repos/pingcap/tikv/comments{/number}","issue_comment_url":"https://api.github.com/repos/pingcap/tikv/issues/comments{/number}","contents_url":"https://api.github.com/repos/pingcap/tikv/contents/{+path}","compare_url":"https://api.github.com/repos/pingcap/tikv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pingcap/tikv/merges","archive_url":"https://api.github.com/repos/pingcap/tikv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pingcap/tikv/downloads","issues_url":"https://api.github.com/repos/pingcap/tikv/issues{/number}","pulls_url":"https://api.github.com/repos/pingcap/tikv/pulls{/number}","milestones_url":"https://api.github.com/repos/pingcap/tikv/milestones{/number}","notifications_url":"https://api.github.com/repos/pingcap/tikv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pingcap/tikv/labels{/name}","releases_url":"https://api.github.com/repos/pingcap/tikv/releases{/id}","deployments_url":"https://api.github.com/repos/pingcap/tikv/deployments","created_at":"2015-12-31T04:51:32Z","updated_at":"2018-06-14T07:15:39Z","pushed_at":"2018-06-14T07:10:51Z","git_url":"git://github.com/pingcap/tikv.git","ssh_url":"git@github.com:pingcap/tikv.git","clone_url":"https://github.com/pingcap/tikv.git","svn_url":"https://github.com/pingcap/tikv","homepage":"https://pingcap.com","size":13919,"stargazers_count":3256,"watchers_count":3256,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":419,"mirror_url":null,"archived":false,"open_issues_count":225,"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":419,"open_issues":225,"watchers":3256,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pingcap/tikv/pulls/3206"},"html":{"href":"https://github.com/pingcap/tikv/pull/3206"},"issue":{"href":"https://api.github.com/repos/pingcap/tikv/issues/3206"},"comments":{"href":"https://api.github.com/repos/pingcap/tikv/issues/3206/comments"},"review_comments":{"href":"https://api.github.com/repos/pingcap/tikv/pulls/3206/comments"},"review_comment":{"href":"https://api.github.com/repos/pingcap/tikv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pingcap/tikv/pulls/3206/commits"},"statuses":{"href":"https://api.github.com/repos/pingcap/tikv/statuses/5bba7a5ba1eb36d2aa1f436dc6d014c4c8ab9403"}},"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":1,"additions":13,"deletions":6,"changed_files":3}}
{"actor":{"display_login":"lamxTyler"}}