cockroachdb / cockroachdb/cockroach
stats: consider truncating deeply-nested json objects used as upper bounds
Open
A-sql-table-stats
C-cleanup
T-sql-queries
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
Here is `inuse_objects` view from one of the CC clusters. It is dominated by allocations for deeply-nested json objects.

We should consider truncating such datums before using them as upper bound.
I've looked at many CC clusters, and upper bound datums in general are often very prominent as `inuse_objects`, but json datums seem particularly noticeable.
Jira issue: CRDB-37489
Contributor guide
Assessment
This issue has not been assessed yet.