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

record whether a statement hit plan cache in slow log #16197

Closed
zz-jason opened this issue Apr 8, 2020 · 3 comments · Fixed by #17088
Closed

record whether a statement hit plan cache in slow log #16197

zz-jason opened this issue Apr 8, 2020 · 3 comments · Fixed by #17088
Assignees
Labels
epic/plan-cache sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.

Comments

@zz-jason
Copy link
Member

zz-jason commented Apr 8, 2020

Development Task

we may need to record whether a statement hit plan cache in slow log. There are some beneficial:

  1. to identify the slow reason is related to the planner.
  2. if a plan is sub-optimal, we can further figure out whether it's caused by the plan cache.
@zz-jason zz-jason added type/enhancement The issue or PR belongs to an enhancement. sig/planner SIG: Planner labels Apr 8, 2020
@zz-jason
Copy link
Member Author

zz-jason commented Apr 8, 2020

@eurekaka How do you think?

@eurekaka
Copy link
Contributor

@eurekaka How do you think?

Sounds reasonable.

@ChenPeng2013
Copy link
Contributor

verified on
master: v4.0.0-beta.2-547-g94a722e2d
release-4.0: v4.0.0-19-g13522b901

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic/plan-cache sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants