{"action":"closed","number":786,"pull_request":{"url":"https://api.github.com/repos/CUBRID/cubrid/pulls/786","id":129357729,"html_url":"https://github.com/CUBRID/cubrid/pull/786","diff_url":"https://github.com/CUBRID/cubrid/pull/786.diff","patch_url":"https://github.com/CUBRID/cubrid/pull/786.patch","issue_url":"https://api.github.com/repos/CUBRID/cubrid/issues/786","number":786,"state":"closed","locked":false,"title":"[CBRD-21433] Enhancement for loading a foreign key","user":{"login":"lucianlazar2211","id":19164748,"avatar_url":"https://avatars1.githubusercontent.com/u/19164748?v=4","gravatar_id":"","url":"https://api.github.com/users/lucianlazar2211","html_url":"https://github.com/lucianlazar2211","followers_url":"https://api.github.com/users/lucianlazar2211/followers","following_url":"https://api.github.com/users/lucianlazar2211/following{/other_user}","gists_url":"https://api.github.com/users/lucianlazar2211/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianlazar2211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianlazar2211/subscriptions","organizations_url":"https://api.github.com/users/lucianlazar2211/orgs","repos_url":"https://api.github.com/users/lucianlazar2211/repos","events_url":"https://api.github.com/users/lucianlazar2211/events{/privacy}","received_events_url":"https://api.github.com/users/lucianlazar2211/received_events","type":"User","site_admin":false},"body":"http://jira.cubrid.org/browse/CBRD-21433\r\n\r\nThis enhancement provide a better loading time of the foreign key.  In the previous iteration, each value from the foreign key was checked to reside also in the primary key, by scanning the primary key tree always from the root to leafs. Now, just the first value from the key will be scanned from root to leafs, while the others will be looked for starting from the leaf where the last value resides.\r\n\r\nThis is an early version of it. I have opened the PR for easier discussion over it. Things that need to be implemented:\r\n\r\n- [x]  Check for descending type of index and treat it accordingly\r\n\r\n- [x]  Use a range_scan_advance_over_filtered_keys type routine for the values in the foreign key\r\n\r\nTesting status:\r\n\r\n- SQL regressions -> Completed\r\n- Medium regressions -> Completed\r\n- CTL regressions -> In progress","created_at":"2017-07-07T08:49:58Z","updated_at":"2017-09-22T08:50:27Z","closed_at":"2017-09-22T08:50:27Z","merged_at":"2017-09-22T08:50:27Z","merge_commit_sha":"6cb8e69d178915e174cefa8e4dae4f22cca4c4f7","assignee":{"login":"lucianlazar2211","id":19164748,"avatar_url":"https://avatars1.githubusercontent.com/u/19164748?v=4","gravatar_id":"","url":"https://api.github.com/users/lucianlazar2211","html_url":"https://github.com/lucianlazar2211","followers_url":"https://api.github.com/users/lucianlazar2211/followers","following_url":"https://api.github.com/users/lucianlazar2211/following{/other_user}","gists_url":"https://api.github.com/users/lucianlazar2211/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianlazar2211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianlazar2211/subscriptions","organizations_url":"https://api.github.com/users/lucianlazar2211/orgs","repos_url":"https://api.github.com/users/lucianlazar2211/repos","events_url":"https://api.github.com/users/lucianlazar2211/events{/privacy}","received_events_url":"https://api.github.com/users/lucianlazar2211/received_events","type":"User","site_admin":false},"assignees":[{"login":"lucianlazar2211","id":19164748,"avatar_url":"https://avatars1.githubusercontent.com/u/19164748?v=4","gravatar_id":"","url":"https://api.github.com/users/lucianlazar2211","html_url":"https://github.com/lucianlazar2211","followers_url":"https://api.github.com/users/lucianlazar2211/followers","following_url":"https://api.github.com/users/lucianlazar2211/following{/other_user}","gists_url":"https://api.github.com/users/lucianlazar2211/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianlazar2211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianlazar2211/subscriptions","organizations_url":"https://api.github.com/users/lucianlazar2211/orgs","repos_url":"https://api.github.com/users/lucianlazar2211/repos","events_url":"https://api.github.com/users/lucianlazar2211/events{/privacy}","received_events_url":"https://api.github.com/users/lucianlazar2211/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/CUBRID/cubrid/milestones/2","html_url":"https://github.com/CUBRID/cubrid/milestone/2","labels_url":"https://api.github.com/repos/CUBRID/cubrid/milestones/2/labels","id":2618783,"number":2,"title":"cherry","description":null,"creator":{"login":"eseokoh","id":17467172,"avatar_url":"https://avatars1.githubusercontent.com/u/17467172?v=4","gravatar_id":"","url":"https://api.github.com/users/eseokoh","html_url":"https://github.com/eseokoh","followers_url":"https://api.github.com/users/eseokoh/followers","following_url":"https://api.github.com/users/eseokoh/following{/other_user}","gists_url":"https://api.github.com/users/eseokoh/gists{/gist_id}","starred_url":"https://api.github.com/users/eseokoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eseokoh/subscriptions","organizations_url":"https://api.github.com/users/eseokoh/orgs","repos_url":"https://api.github.com/users/eseokoh/repos","events_url":"https://api.github.com/users/eseokoh/events{/privacy}","received_events_url":"https://api.github.com/users/eseokoh/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":25,"state":"open","created_at":"2017-07-03T13:14:16Z","updated_at":"2017-09-22T08:50:27Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/CUBRID/cubrid/pulls/786/commits","review_comments_url":"https://api.github.com/repos/CUBRID/cubrid/pulls/786/comments","review_comment_url":"https://api.github.com/repos/CUBRID/cubrid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CUBRID/cubrid/issues/786/comments","statuses_url":"https://api.github.com/repos/CUBRID/cubrid/statuses/e92b1070bd9f966d9cf52bfa5f3903168ec8fb7d","head":{"label":"lucianlazar2211:CBRD-21433","ref":"CBRD-21433","sha":"e92b1070bd9f966d9cf52bfa5f3903168ec8fb7d","user":{"login":"lucianlazar2211","id":19164748,"avatar_url":"https://avatars1.githubusercontent.com/u/19164748?v=4","gravatar_id":"","url":"https://api.github.com/users/lucianlazar2211","html_url":"https://github.com/lucianlazar2211","followers_url":"https://api.github.com/users/lucianlazar2211/followers","following_url":"https://api.github.com/users/lucianlazar2211/following{/other_user}","gists_url":"https://api.github.com/users/lucianlazar2211/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianlazar2211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianlazar2211/subscriptions","organizations_url":"https://api.github.com/users/lucianlazar2211/orgs","repos_url":"https://api.github.com/users/lucianlazar2211/repos","events_url":"https://api.github.com/users/lucianlazar2211/events{/privacy}","received_events_url":"https://api.github.com/users/lucianlazar2211/received_events","type":"User","site_admin":false},"repo":{"id":57952979,"name":"cubrid","full_name":"lucianlazar2211/cubrid","owner":{"login":"lucianlazar2211","id":19164748,"avatar_url":"https://avatars1.githubusercontent.com/u/19164748?v=4","gravatar_id":"","url":"https://api.github.com/users/lucianlazar2211","html_url":"https://github.com/lucianlazar2211","followers_url":"https://api.github.com/users/lucianlazar2211/followers","following_url":"https://api.github.com/users/lucianlazar2211/following{/other_user}","gists_url":"https://api.github.com/users/lucianlazar2211/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianlazar2211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianlazar2211/subscriptions","organizations_url":"https://api.github.com/users/lucianlazar2211/orgs","repos_url":"https://api.github.com/users/lucianlazar2211/repos","events_url":"https://api.github.com/users/lucianlazar2211/events{/privacy}","received_events_url":"https://api.github.com/users/lucianlazar2211/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lucianlazar2211/cubrid","description":"CUBRID is a comprehensive open source relational database management system highly optimized for Web Applications.","fork":true,"url":"https://api.github.com/repos/lucianlazar2211/cubrid","forks_url":"https://api.github.com/repos/lucianlazar2211/cubrid/forks","keys_url":"https://api.github.com/repos/lucianlazar2211/cubrid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lucianlazar2211/cubrid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lucianlazar2211/cubrid/teams","hooks_url":"https://api.github.com/repos/lucianlazar2211/cubrid/hooks","issue_events_url":"https://api.github.com/repos/lucianlazar2211/cubrid/issues/events{/number}","events_url":"https://api.github.com/repos/lucianlazar2211/cubrid/events","assignees_url":"https://api.github.com/repos/lucianlazar2211/cubrid/assignees{/user}","branches_url":"https://api.github.com/repos/lucianlazar2211/cubrid/branches{/branch}","tags_url":"https://api.github.com/repos/lucianlazar2211/cubrid/tags","blobs_url":"https://api.github.com/repos/lucianlazar2211/cubrid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lucianlazar2211/cubrid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lucianlazar2211/cubrid/git/refs{/sha}","trees_url":"https://api.github.com/repos/lucianlazar2211/cubrid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lucianlazar2211/cubrid/statuses/{sha}","languages_url":"https://api.github.com/repos/lucianlazar2211/cubrid/languages","stargazers_url":"https://api.github.com/repos/lucianlazar2211/cubrid/stargazers","contributors_url":"https://api.github.com/repos/lucianlazar2211/cubrid/contributors","subscribers_url":"https://api.github.com/repos/lucianlazar2211/cubrid/subscribers","subscription_url":"https://api.github.com/repos/lucianlazar2211/cubrid/subscription","commits_url":"https://api.github.com/repos/lucianlazar2211/cubrid/commits{/sha}","git_commits_url":"https://api.github.com/repos/lucianlazar2211/cubrid/git/commits{/sha}","comments_url":"https://api.github.com/repos/lucianlazar2211/cubrid/comments{/number}","issue_comment_url":"https://api.github.com/repos/lucianlazar2211/cubrid/issues/comments{/number}","contents_url":"https://api.github.com/repos/lucianlazar2211/cubrid/contents/{+path}","compare_url":"https://api.github.com/repos/lucianlazar2211/cubrid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lucianlazar2211/cubrid/merges","archive_url":"https://api.github.com/repos/lucianlazar2211/cubrid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lucianlazar2211/cubrid/downloads","issues_url":"https://api.github.com/repos/lucianlazar2211/cubrid/issues{/number}","pulls_url":"https://api.github.com/repos/lucianlazar2211/cubrid/pulls{/number}","milestones_url":"https://api.github.com/repos/lucianlazar2211/cubrid/milestones{/number}","notifications_url":"https://api.github.com/repos/lucianlazar2211/cubrid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lucianlazar2211/cubrid/labels{/name}","releases_url":"https://api.github.com/repos/lucianlazar2211/cubrid/releases{/id}","deployments_url":"https://api.github.com/repos/lucianlazar2211/cubrid/deployments","created_at":"2016-05-03T08:16:51Z","updated_at":"2016-05-03T08:17:06Z","pushed_at":"2017-09-22T08:23:46Z","git_url":"git://github.com/lucianlazar2211/cubrid.git","ssh_url":"git@github.com:lucianlazar2211/cubrid.git","clone_url":"https://github.com/lucianlazar2211/cubrid.git","svn_url":"https://github.com/lucianlazar2211/cubrid","homepage":"http://www.cubrid.org","size":178046,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"CUBRID:develop","ref":"develop","sha":"b6a3078947d9054bfaaa160b70ee7c32e1f656ee","user":{"login":"CUBRID","id":358322,"avatar_url":"https://avatars0.githubusercontent.com/u/358322?v=4","gravatar_id":"","url":"https://api.github.com/users/CUBRID","html_url":"https://github.com/CUBRID","followers_url":"https://api.github.com/users/CUBRID/followers","following_url":"https://api.github.com/users/CUBRID/following{/other_user}","gists_url":"https://api.github.com/users/CUBRID/gists{/gist_id}","starred_url":"https://api.github.com/users/CUBRID/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CUBRID/subscriptions","organizations_url":"https://api.github.com/users/CUBRID/orgs","repos_url":"https://api.github.com/users/CUBRID/repos","events_url":"https://api.github.com/users/CUBRID/events{/privacy}","received_events_url":"https://api.github.com/users/CUBRID/received_events","type":"Organization","site_admin":false},"repo":{"id":52080367,"name":"cubrid","full_name":"CUBRID/cubrid","owner":{"login":"CUBRID","id":358322,"avatar_url":"https://avatars0.githubusercontent.com/u/358322?v=4","gravatar_id":"","url":"https://api.github.com/users/CUBRID","html_url":"https://github.com/CUBRID","followers_url":"https://api.github.com/users/CUBRID/followers","following_url":"https://api.github.com/users/CUBRID/following{/other_user}","gists_url":"https://api.github.com/users/CUBRID/gists{/gist_id}","starred_url":"https://api.github.com/users/CUBRID/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CUBRID/subscriptions","organizations_url":"https://api.github.com/users/CUBRID/orgs","repos_url":"https://api.github.com/users/CUBRID/repos","events_url":"https://api.github.com/users/CUBRID/events{/privacy}","received_events_url":"https://api.github.com/users/CUBRID/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CUBRID/cubrid","description":"CUBRID is a comprehensive open source relational database management system highly optimized for Web Applications.","fork":false,"url":"https://api.github.com/repos/CUBRID/cubrid","forks_url":"https://api.github.com/repos/CUBRID/cubrid/forks","keys_url":"https://api.github.com/repos/CUBRID/cubrid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CUBRID/cubrid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CUBRID/cubrid/teams","hooks_url":"https://api.github.com/repos/CUBRID/cubrid/hooks","issue_events_url":"https://api.github.com/repos/CUBRID/cubrid/issues/events{/number}","events_url":"https://api.github.com/repos/CUBRID/cubrid/events","assignees_url":"https://api.github.com/repos/CUBRID/cubrid/assignees{/user}","branches_url":"https://api.github.com/repos/CUBRID/cubrid/branches{/branch}","tags_url":"https://api.github.com/repos/CUBRID/cubrid/tags","blobs_url":"https://api.github.com/repos/CUBRID/cubrid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CUBRID/cubrid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CUBRID/cubrid/git/refs{/sha}","trees_url":"https://api.github.com/repos/CUBRID/cubrid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CUBRID/cubrid/statuses/{sha}","languages_url":"https://api.github.com/repos/CUBRID/cubrid/languages","stargazers_url":"https://api.github.com/repos/CUBRID/cubrid/stargazers","contributors_url":"https://api.github.com/repos/CUBRID/cubrid/contributors","subscribers_url":"https://api.github.com/repos/CUBRID/cubrid/subscribers","subscription_url":"https://api.github.com/repos/CUBRID/cubrid/subscription","commits_url":"https://api.github.com/repos/CUBRID/cubrid/commits{/sha}","git_commits_url":"https://api.github.com/repos/CUBRID/cubrid/git/commits{/sha}","comments_url":"https://api.github.com/repos/CUBRID/cubrid/comments{/number}","issue_comment_url":"https://api.github.com/repos/CUBRID/cubrid/issues/comments{/number}","contents_url":"https://api.github.com/repos/CUBRID/cubrid/contents/{+path}","compare_url":"https://api.github.com/repos/CUBRID/cubrid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CUBRID/cubrid/merges","archive_url":"https://api.github.com/repos/CUBRID/cubrid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CUBRID/cubrid/downloads","issues_url":"https://api.github.com/repos/CUBRID/cubrid/issues{/number}","pulls_url":"https://api.github.com/repos/CUBRID/cubrid/pulls{/number}","milestones_url":"https://api.github.com/repos/CUBRID/cubrid/milestones{/number}","notifications_url":"https://api.github.com/repos/CUBRID/cubrid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CUBRID/cubrid/labels{/name}","releases_url":"https://api.github.com/repos/CUBRID/cubrid/releases{/id}","deployments_url":"https://api.github.com/repos/CUBRID/cubrid/deployments","created_at":"2016-02-19T10:25:32Z","updated_at":"2017-09-10T09:40:16Z","pushed_at":"2017-09-22T08:50:27Z","git_url":"git://github.com/CUBRID/cubrid.git","ssh_url":"git@github.com:CUBRID/cubrid.git","clone_url":"https://github.com/CUBRID/cubrid.git","svn_url":"https://github.com/CUBRID/cubrid","homepage":"http://www.cubrid.org","size":177286,"stargazers_count":48,"watchers_count":48,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":19,"forks":37,"open_issues":19,"watchers":48,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CUBRID/cubrid/pulls/786"},"html":{"href":"https://github.com/CUBRID/cubrid/pull/786"},"issue":{"href":"https://api.github.com/repos/CUBRID/cubrid/issues/786"},"comments":{"href":"https://api.github.com/repos/CUBRID/cubrid/issues/786/comments"},"review_comments":{"href":"https://api.github.com/repos/CUBRID/cubrid/pulls/786/comments"},"review_comment":{"href":"https://api.github.com/repos/CUBRID/cubrid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CUBRID/cubrid/pulls/786/commits"},"statuses":{"href":"https://api.github.com/repos/CUBRID/cubrid/statuses/e92b1070bd9f966d9cf52bfa5f3903168ec8fb7d"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"lucianlazar2211","id":19164748,"avatar_url":"https://avatars1.githubusercontent.com/u/19164748?v=4","gravatar_id":"","url":"https://api.github.com/users/lucianlazar2211","html_url":"https://github.com/lucianlazar2211","followers_url":"https://api.github.com/users/lucianlazar2211/followers","following_url":"https://api.github.com/users/lucianlazar2211/following{/other_user}","gists_url":"https://api.github.com/users/lucianlazar2211/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianlazar2211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianlazar2211/subscriptions","organizations_url":"https://api.github.com/users/lucianlazar2211/orgs","repos_url":"https://api.github.com/users/lucianlazar2211/repos","events_url":"https://api.github.com/users/lucianlazar2211/events{/privacy}","received_events_url":"https://api.github.com/users/lucianlazar2211/received_events","type":"User","site_admin":false},"comments":4,"review_comments":31,"maintainer_can_modify":false,"commits":42,"additions":998,"deletions":272,"changed_files":6}}
{"actor":{"display_login":"lucianlazar2211"}}