Don't need to copy the obj from stats cache each time if we set `force-init-stats` to true
Open
component/statistics
sig/planner
type/enhancement
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement

If we set `force-init-stats` to true, the stats initialization is a blocker of TiDB's bootstrap. So we don't need to worry about the concurrent read&write of the stats cache.
We can avoid the usage of Copy.
Contributor guide
Assessment
This issue has not been assessed yet.