{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-hawq-docs/pulls/comments/88074883","pull_request_review_id":8659816,"id":88074883,"diff_hunk":"@@ -4,6 +4,23 @@ title: Best Practices for Querying Data\n \n To obtain the best results when querying data in HAWQ, review the best practices described in this topic.\n \n+## <a id=\"virtual_seg_performance\"></a>Factors Impacting Query Performance\n+\n+The number of virtual segments used for a query directly impacts the query's performance. The following factors can impact the degree of parallelism of a query:\n+\n+-   **Cost of the query**. Small queries use fewer segments and larger queries use more segments. Some techniques used in defining resource queues can influence the number of both virtual segments and general resources allocated to queries. For more information, see [Best Practices for Using Resource Queues](managing_resources_bestpractices.html#topic_hvd_pls_wv).\n+-   **Available resources at query time**. If more resources are available in the resource queue, those resources will be used.\n+-   **Hash table and bucket number**. If the query involves only hash-distributed tables, the query's parallelism is fixed (equal to the hash table bucket number) under the following conditions: \n+  \t- the bucket number (bucketnum) configured for all the hash tables is the same bucket number for all tables ","path":"bestpractices/querying_data_bestpractices.html.md.erb","position":null,"original_position":11,"commit_id":"6c8cb4aefce7f3b72cc5dd9efbb807fefbcaf760","original_commit_id":"3058babb2dd5143679fb070c23f73854d32c719f","user":{"login":"dyozie","id":5695830,"avatar_url":"https://avatars.githubusercontent.com/u/5695830?v=3","gravatar_id":"","url":"https://api.github.com/users/dyozie","html_url":"https://github.com/dyozie","followers_url":"https://api.github.com/users/dyozie/followers","following_url":"https://api.github.com/users/dyozie/following{/other_user}","gists_url":"https://api.github.com/users/dyozie/gists{/gist_id}","starred_url":"https://api.github.com/users/dyozie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dyozie/subscriptions","organizations_url":"https://api.github.com/users/dyozie/orgs","repos_url":"https://api.github.com/users/dyozie/repos","events_url":"https://api.github.com/users/dyozie/events{/privacy}","received_events_url":"https://api.github.com/users/dyozie/received_events","type":"User","site_admin":false},"body":"Looks like the second edit still applies - here's the sentence that seems to have some redundant wording in it:  \"The bucket number (bucketnum) configured for all the hash tables is the same bucket number for all tables\"","created_at":"2016-11-15T17:58:50Z","updated_at":"2016-11-15T17:58:50Z","html_url":"https://github.com/apache/incubator-hawq-docs/pull/59#discussion_r88074883","pull_request_url":"https://api.github.com/repos/apache/incubator-hawq-docs/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-hawq-docs/pulls/comments/88074883"},"html":{"href":"https://github.com/apache/incubator-hawq-docs/pull/59#discussion_r88074883"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-hawq-docs/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-hawq-docs/pulls/59","id":93073043,"html_url":"https://github.com/apache/incubator-hawq-docs/pull/59","diff_url":"https://github.com/apache/incubator-hawq-docs/pull/59.diff","patch_url":"https://github.com/apache/incubator-hawq-docs/pull/59.patch","issue_url":"https://api.github.com/repos/apache/incubator-hawq-docs/issues/59","number":59,"state":"open","locked":false,"title":"Feature/best pract","user":{"login":"janebeckman","id":14659543,"avatar_url":"https://avatars.githubusercontent.com/u/14659543?v=3","gravatar_id":"","url":"https://api.github.com/users/janebeckman","html_url":"https://github.com/janebeckman","followers_url":"https://api.github.com/users/janebeckman/followers","following_url":"https://api.github.com/users/janebeckman/following{/other_user}","gists_url":"https://api.github.com/users/janebeckman/gists{/gist_id}","starred_url":"https://api.github.com/users/janebeckman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janebeckman/subscriptions","organizations_url":"https://api.github.com/users/janebeckman/orgs","repos_url":"https://api.github.com/users/janebeckman/repos","events_url":"https://api.github.com/users/janebeckman/events{/privacy}","received_events_url":"https://api.github.com/users/janebeckman/received_events","type":"User","site_admin":false},"body":"Removed catch-all section and moved rewritten content to other sections.","created_at":"2016-11-10T01:50:42Z","updated_at":"2016-11-15T17:58:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3efe34b5488158fc6caaf707654fb269c36a62d4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-hawq-docs/pulls/59/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-hawq-docs/pulls/59/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-hawq-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-hawq-docs/issues/59/comments","statuses_url":"https://api.github.com/repos/apache/incubator-hawq-docs/statuses/6c8cb4aefce7f3b72cc5dd9efbb807fefbcaf760","head":{"label":"janebeckman:feature/BestPract","ref":"feature/BestPract","sha":"6c8cb4aefce7f3b72cc5dd9efbb807fefbcaf760","user":{"login":"janebeckman","id":14659543,"avatar_url":"https://avatars.githubusercontent.com/u/14659543?v=3","gravatar_id":"","url":"https://api.github.com/users/janebeckman","html_url":"https://github.com/janebeckman","followers_url":"https://api.github.com/users/janebeckman/followers","following_url":"https://api.github.com/users/janebeckman/following{/other_user}","gists_url":"https://api.github.com/users/janebeckman/gists{/gist_id}","starred_url":"https://api.github.com/users/janebeckman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janebeckman/subscriptions","organizations_url":"https://api.github.com/users/janebeckman/orgs","repos_url":"https://api.github.com/users/janebeckman/repos","events_url":"https://api.github.com/users/janebeckman/events{/privacy}","received_events_url":"https://api.github.com/users/janebeckman/received_events","type":"User","site_admin":false},"repo":{"id":68051306,"name":"incubator-hawq-docs","full_name":"janebeckman/incubator-hawq-docs","owner":{"login":"janebeckman","id":14659543,"avatar_url":"https://avatars.githubusercontent.com/u/14659543?v=3","gravatar_id":"","url":"https://api.github.com/users/janebeckman","html_url":"https://github.com/janebeckman","followers_url":"https://api.github.com/users/janebeckman/followers","following_url":"https://api.github.com/users/janebeckman/following{/other_user}","gists_url":"https://api.github.com/users/janebeckman/gists{/gist_id}","starred_url":"https://api.github.com/users/janebeckman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janebeckman/subscriptions","organizations_url":"https://api.github.com/users/janebeckman/orgs","repos_url":"https://api.github.com/users/janebeckman/repos","events_url":"https://api.github.com/users/janebeckman/events{/privacy}","received_events_url":"https://api.github.com/users/janebeckman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/janebeckman/incubator-hawq-docs","description":"Mirror of Apache HAWQ Documentation (Incubating)","fork":true,"url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs","forks_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/forks","keys_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/teams","hooks_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/hooks","issue_events_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/issues/events{/number}","events_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/events","assignees_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/assignees{/user}","branches_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/branches{/branch}","tags_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/tags","blobs_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/languages","stargazers_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/stargazers","contributors_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/contributors","subscribers_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/subscribers","subscription_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/subscription","commits_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/contents/{+path}","compare_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/merges","archive_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/downloads","issues_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/issues{/number}","pulls_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/labels{/name}","releases_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/releases{/id}","deployments_url":"https://api.github.com/repos/janebeckman/incubator-hawq-docs/deployments","created_at":"2016-09-12T21:53:22Z","updated_at":"2016-09-12T21:53:23Z","pushed_at":"2016-11-15T01:39:22Z","git_url":"git://github.com/janebeckman/incubator-hawq-docs.git","ssh_url":"git@github.com:janebeckman/incubator-hawq-docs.git","clone_url":"https://github.com/janebeckman/incubator-hawq-docs.git","svn_url":"https://github.com/janebeckman/incubator-hawq-docs","homepage":null,"size":4545,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:develop","ref":"develop","sha":"fdd6b09336ab50bcdb39bdcd382b4441753a3a0a","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":66060410,"name":"incubator-hawq-docs","full_name":"apache/incubator-hawq-docs","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-hawq-docs","description":"Mirror of Apache HAWQ Documentation (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-hawq-docs","forks_url":"https://api.github.com/repos/apache/incubator-hawq-docs/forks","keys_url":"https://api.github.com/repos/apache/incubator-hawq-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-hawq-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-hawq-docs/teams","hooks_url":"https://api.github.com/repos/apache/incubator-hawq-docs/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-hawq-docs/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-hawq-docs/events","assignees_url":"https://api.github.com/repos/apache/incubator-hawq-docs/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-hawq-docs/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-hawq-docs/tags","blobs_url":"https://api.github.com/repos/apache/incubator-hawq-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-hawq-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-hawq-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-hawq-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-hawq-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-hawq-docs/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-hawq-docs/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-hawq-docs/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-hawq-docs/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-hawq-docs/subscription","commits_url":"https://api.github.com/repos/apache/incubator-hawq-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-hawq-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-hawq-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-hawq-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-hawq-docs/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-hawq-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-hawq-docs/merges","archive_url":"https://api.github.com/repos/apache/incubator-hawq-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-hawq-docs/downloads","issues_url":"https://api.github.com/repos/apache/incubator-hawq-docs/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-hawq-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-hawq-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-hawq-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-hawq-docs/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-hawq-docs/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-hawq-docs/deployments","created_at":"2016-08-19T07:00:06Z","updated_at":"2016-08-19T07:00:11Z","pushed_at":"2016-11-15T17:15:20Z","git_url":"git://github.com/apache/incubator-hawq-docs.git","ssh_url":"git@github.com:apache/incubator-hawq-docs.git","clone_url":"https://github.com/apache/incubator-hawq-docs.git","svn_url":"https://github.com/apache/incubator-hawq-docs","homepage":null,"size":4625,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":"git://git.apache.org/incubator-hawq-docs.git","open_issues_count":5,"forks":4,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-hawq-docs/pulls/59"},"html":{"href":"https://github.com/apache/incubator-hawq-docs/pull/59"},"issue":{"href":"https://api.github.com/repos/apache/incubator-hawq-docs/issues/59"},"comments":{"href":"https://api.github.com/repos/apache/incubator-hawq-docs/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-hawq-docs/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-hawq-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-hawq-docs/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-hawq-docs/statuses/6c8cb4aefce7f3b72cc5dd9efbb807fefbcaf760"}}}}
{"actor":{"display_login":"dyozie"}}