BuildAnalysisJobs using IterAllTables consumes too much memory in million tables
Open
type/enhancement
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
The 32GB specification TiDB instance owner will oom when init analysis jobs in the 8 million tables.


### 2. What did you expect to see? (Required)
### 3. What did you see instead (Required)
### 4. What is your TiDB version? (Required)
v8.5.2
Contributor guide
Assessment
This issue has not been assessed yet.