Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[optimize] init join hash table size by rows before hash table building #9732

Closed
wants to merge 2 commits into from

Conversation

englefly
Copy link
Contributor

Proposed changes

Initialize hash table size by the tuple number instead of fixed number 1024 to reduce BuildTableExpanseTime.
test result:
After initialize table size, the total build time decreased by 8.9% on tpch 10G,
test sql:
select count(*) from lineitem join orders on l_orderkey = o_orderkey

Problem Summary:

Describe the overview of changes.

Checklist(Required)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@yiguolei
Copy link
Contributor

Duplicate with #9735

@yiguolei yiguolei closed this May 23, 2022
@englefly englefly deleted the join_hash_table_resize branch August 5, 2022 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants