cockroachdb / cockroachdb/cockroach

stats: consider truncating deeply-nested json objects used as upper bounds

Open
#121,749 1 comment 0 reactions 0 assignees View on GitHub
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.
![Screenshot 2024-04-03 at 5 41 13 PM](https://github.com/cockroachdb/cockroach/assets/5135385/a2479cad-d10d-4bf4-85b8-9b667a9cc590)

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

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.