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

executor: improve codes of stmt hints #12246

Merged
merged 5 commits into from Sep 18, 2019

Conversation

foreyes
Copy link
Contributor

@foreyes foreyes commented Sep 18, 2019

What problem does this PR solve?

Improve codes of #11809

What is changed and how it works?

Reduce function cost when there is no sql hint.

Record last hint instead of save the whole list.

Check List

Tests

  • Unit test

Code changes

  • None

Side effects

  • None

Related changes

  • None

Release note

  • Write release note for bug-fix or new feature.

@foreyes foreyes added the sig/execution SIG execution label Sep 18, 2019
@foreyes foreyes self-assigned this Sep 18, 2019
@codecov
Copy link

codecov bot commented Sep 18, 2019

Codecov Report

Merging #12246 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master    #12246   +/-   ##
=========================================
  Coverage   81.075%   81.075%           
=========================================
  Files          454       454           
  Lines        98658     98658           
=========================================
  Hits         79987     79987           
  Misses       12899     12899           
  Partials      5772      5772

@zz-jason
Copy link
Member

should we cherry pick this pr to release-3.1?

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zz-jason zz-jason added status/LGT1 Indicates that a PR has LGTM 1. type/enhancement labels Sep 18, 2019
qw4990
qw4990 previously approved these changes Sep 18, 2019
Copy link
Contributor

@qw4990 qw4990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

alivxxx
alivxxx previously approved these changes Sep 18, 2019
Copy link
Contributor

@alivxxx alivxxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alivxxx alivxxx added status/LGT2 Indicates that a PR has LGTM 2. status/can-merge Indicates a PR has been approved by a committer. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Sep 18, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Sep 18, 2019

Your auto merge job has been accepted, waiting for 12250, 12225

@sre-bot
Copy link
Contributor

sre-bot commented Sep 18, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Sep 18, 2019

@foreyes merge failed.

@foreyes
Copy link
Contributor Author

foreyes commented Sep 18, 2019

/run-unit-test

@foreyes
Copy link
Contributor Author

foreyes commented Sep 18, 2019

should we cherry pick this pr to release-3.1?

Nope, seems we don't need these hints in 3.1.

executor/executor.go Outdated Show resolved Hide resolved
Copy link
Contributor

@lonng lonng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM

@foreyes
Copy link
Contributor Author

foreyes commented Sep 18, 2019

/run-all-tests

@foreyes
Copy link
Contributor Author

foreyes commented Sep 18, 2019

Could you approve again? @lamxTyler

@zz-jason
Copy link
Member

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Sep 18, 2019

Your auto merge job has been accepted, waiting for 12249, 12234

@zz-jason
Copy link
Member

should we cherry pick this pr to release-3.1?

Nope, seems we don't need these hints in 3.1.

Does release 3.1 have this performance issue?

@sre-bot
Copy link
Contributor

sre-bot commented Sep 18, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Sep 18, 2019

@foreyes merge failed.

@zz-jason
Copy link
Member

/run-unit-test

@zz-jason zz-jason merged commit f9724db into pingcap:master Sep 18, 2019
@foreyes foreyes deleted the dev/improve_stmt_hint branch September 18, 2019 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants