pingcap / pingcap/tidb

planner: optimizer statistics cost too much amount of memory

Open
#46,149 0 comments 0 reactions 2 assignees Claimed by @winoros View on GitHub
component/statistics sig/planner type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

750000 columns and indexes totally, even if some of them are not used, after initializing, the statistics cost 4G+ memory:

MySQL  (none)  select count (1) from mysql stats_histograms;

![image](https://github.com/pingcap/tidb/assets/7499936/30a47857-7661-4fc7-bb6f-c3ead475b81b)

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.