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

[opt](nereids) optimize small sql #43546

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

924060929
Copy link
Contributor

@924060929 924060929 commented Nov 10, 2024

What problem does this PR solve?

Problem Summary:

speedup small sql

for this sql

select *
from test2.t2
where c1=1 and c3='2024-11-09' and c4='4'
order by cast(c7 as unsigned integer)
limit 10
offset 2;

speed up from 1650 QPS to 2000 QPS, in 20 threads test

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@924060929 924060929 marked this pull request as draft November 10, 2024 15:52
@924060929
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 37.91% (9868/26027)
Line Coverage: 29.09% (82265/282774)
Region Coverage: 28.25% (42355/149928)
Branch Coverage: 24.80% (21445/86488)
Coverage Report: http://coverage.selectdb-in.cc/coverage/33b99da88218451608a4dbb50653bcf6b4564ea3_33b99da88218451608a4dbb50653bcf6b4564ea3/report/index.html

@924060929
Copy link
Contributor Author

run buildal

@924060929
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 37.91% (9868/26028)
Line Coverage: 29.10% (82299/282785)
Region Coverage: 28.25% (42355/149939)
Branch Coverage: 24.79% (21446/86494)
Coverage Report: http://coverage.selectdb-in.cc/coverage/f45db3a4af7fa53fc12d5dce3ca228928832d91d_f45db3a4af7fa53fc12d5dce3ca228928832d91d/report/index.html

@924060929
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants