`RecordHistoricalStatsToStorage` used too much memory
Open
affects-7.5
component/statistics
report/customer
severity/moderate
sig/planner
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)
It seems that there are many long insert internal SQL statements in the session pool of the domain, and it appears that they have not been cleaned up properly.
### 2. What did you expect to see? (Required)
### 3. What did you see instead (Required)
### 4. What is your TiDB version? (Required)
v7.5.0
Contributor guide
Assessment
This issue has not been assessed yet.