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

A Practical Guide For SQL Tuning #19108

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
843d61d
draft
dbsid Oct 13, 2024
1edd274
draft 2
dbsid Oct 14, 2024
7bae9c9
draft
dbsid Oct 14, 2024
bfe7da1
draft
dbsid Oct 14, 2024
9553527
draft
dbsid Oct 15, 2024
0bc72c1
draft
dbsid Oct 17, 2024
d91c1eb
draft
dbsid Oct 17, 2024
24d0f91
draft
dbsid Oct 21, 2024
50ae7e3
draft
dbsid Oct 22, 2024
ca106fa
draft
dbsid Oct 28, 2024
9694500
draft
dbsid Oct 29, 2024
f6745b2
draft
dbsid Nov 7, 2024
f15a334
draft
dbsid Nov 10, 2024
e0092a5
Update sql-tuning-best-practice.md
dbsid Nov 11, 2024
b1a2187
Apply suggestions from code review
dbsid Nov 11, 2024
866f82e
Apply suggestions from code review
dbsid Nov 11, 2024
46fa81a
fix format
dbsid Nov 11, 2024
6cde429
add variable link
dbsid Nov 11, 2024
fa0aea5
Apply suggestions from code review
dbsid Nov 12, 2024
c5735ef
Apply suggestions from code review
dbsid Nov 12, 2024
ef18d9a
fix indent with 4 spaces
dbsid Nov 12, 2024
3671292
Apply suggestions from code review
dbsid Nov 12, 2024
9d52617
Update sql-tuning-best-practice.md
dbsid Nov 12, 2024
7d30239
include tiflash
dbsid Nov 12, 2024
299aea9
add tiflash content
dbsid Nov 14, 2024
deec5e3
Apply suggestions from code review
dbsid Nov 14, 2024
6158783
add the document purpose and links
dbsid Nov 14, 2024
7e46611
Merge branch 'sql-tuning-best-practice' of https://github.com/dbsid/d…
dbsid Nov 14, 2024
66ee361
fix indent format
dbsid Nov 14, 2024
13dc573
fix CI
dbsid Nov 15, 2024
92fbeae
fix title
dbsid Nov 15, 2024
676c27a
fix format
dbsid Nov 15, 2024
f40b373
fix format
dbsid Nov 15, 2024
011f7c2
fix the comments
dbsid Nov 27, 2024
7920021
Update sql-tuning-best-practice.md
dbsid Dec 4, 2024
824e176
Apply suggestions from code review
dbsid Dec 4, 2024
fd86934
address comments;
dbsid Dec 7, 2024
73a23e1
address the comments
dbsid Dec 7, 2024
c8f7882
fix format
dbsid Dec 7, 2024
ad2efea
unify the terminology
dbsid Dec 7, 2024
03b6659
simple the terminology
dbsid Dec 7, 2024
153ff39
improve the formats
dbsid Dec 7, 2024
7ffcae6
fix
dbsid Dec 7, 2024
2dadad6
fix format
dbsid Dec 7, 2024
8796972
Update sql-tuning-best-practice.md
Yui-Song Dec 12, 2024
d019eba
Merge pull request #1 from Yui-Song/fix-format
dbsid Dec 12, 2024
d7ce1e1
Merge remote-tracking branch 'upstream/master' into sql-tuning-best-p…
dbsid Dec 12, 2024
15574bc
adjust TOC in Tuning guide
dbsid Dec 12, 2024
74f2127
fix ci
dbsid Dec 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@
- Performance Tuning
- Tuning Guide
- [Performance Tuning Overview](/performance-tuning-overview.md)
- [A Practical Guide For SQL Tuning](/sql-tuning-best-practice.md)
- [Performance Analysis and Tuning](/performance-tuning-methods.md)
- [Performance Tuning Practices for OLTP Scenarios](/performance-tuning-practices.md)
- [TiFlash Performance Analysis Methods](/tiflash-performance-tuning-methods.md)
Expand Down
Binary file added media/sql-tuning/cost-based-optimization.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/sql-tuning/execution-plan-traverse.png
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks nice. How was this generated? Could we make this part of the TiDB Dashboard?

This reminds me of:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I borrow this example and figure from the education team. it's interesting to make this available in TiDB Cloud.
This will greatly reduce the difficulty to read and understand the execution plan.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should involve a PM?

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/sql-tuning/slow-query-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/sql-tuning/slow-query-dimension.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/sql-tuning/sql-statement-dimension.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/sql-tuning/sql-statements-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/sql-tuning/workflow-tiflash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/sql-tuning/workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
939 changes: 939 additions & 0 deletions sql-tuning-best-practice.md

Large diffs are not rendered by default.