cockroachdb / cockroachdb/cockroach
sql: better control over selecting columns to collect stats for
Open
A-sql-table-stats
C-enhancement
E-quick-win
O-support
P-3
T-sql-queries
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
Currently the database decides which columns to collect statistics for, and which of those to sample and generate histograms for. There should be a way for a user to turn off or force stats for specific columns. I think the most useful feature to start with would be to allow a user to disable or force sampling and histograms on specific columns. This could help mitigate issues like #139381.
Jira issue: CRDB-46618
Contributor guide
Assessment
This issue has not been assessed yet.