pingcap / pingcap/tidb

Increase loading speed of stats

Open
#40,636 0 comments 0 reactions 1 assignee Claimed by @chrysan View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

TiDB loads stats asynchronously when it starts. When there are 100k tables in TiDB, loading the stats may cause more than one hour ( test on v6.5.0 ). At this stage, the execution plan generated by TiDB may be bad, resulting in increased latency and greater pressure on storage.

Reducing the loading time of stats can better adapt to multi-table scenarios.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.