-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Optimizing hotspot small tables #25293
Comments
I'll just use the comment for the project progess here for the weekly report. |
2021/11/01 This week:
|
2021/11/08 This week:
|
@tiancaiamao please add this issue into compatibility check with other feature |
2021/12/20
|
2022/01/03
|
2022/01/17
|
2022/02/14 There is no update for a long time during the Chinese new year (Spring festival) During this period of time, several bugs are found during the performance test in the core banking scene.
They're all fixed, and a basic QPS metric for the table cache visited is added pull/32171 |
2022/02/21 The performance test in the core bank scenario is done. Three issues are found in the last week:
And I've filed PR for the first two #32387, they are under reviewing. |
2022/02/28 Last week there is not much progress.
|
- Finish performance test report
- KR1: Finish developing 95%
- KR2: Finish testing 90%
- KR3: Document, GA announce, etc 90%
and the result is expected
Description
When a table is too small, it is located in just one region, that region would become a hotspot, and such hot spots would cause a performance bottleneck. By directly caching the small table data in the TiDB layer, such hot spot issues can be solved.
For a small, often used and rarely changed table, caching the whole table in memory in the TiDB server can improve performance.
Document Collection
Talent Challenge Program information
Milestones and action items
Milestone 1: Support schema change for caching table, Expected finish date: TBD
alter table xxx nocache
operation #29645br
, so it's handled as a normal table #31190Milestone 2: Support reading and writing on cached table, Expected finish date: TBD
Milestone 3: Test with abnormal injection cases
Misc:
Limitation & Known bugs
mysql.table_cache_meta
table datamaintain the local state to avoid unnecessary load cache requestThe text was updated successfully, but these errors were encountered: