cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.02k stars 3.79k forks source link

Surface Information Regarding Predicates Without an Index #107494

Open gtr opened 1 year ago

gtr commented 1 year ago

We currently have mechanisms to capture details such as whether a statement was executed with a full table or index scan in its plan, and we're also discussing surfacing information about index joins. An equally valuable piece of information that we currently lack is whether a query involves predicates that do not have an associated index.

Predicates without an index require full table scans or large portion scans, which can significantly degrade performance. Especially in large-scale deployments, workloads can change and predicates can shift, which may lead to an increased number of queries involving non-indexed predicates.

Providing observability into this would offer the following benefits:

Jira issue: CRDB-30080

maryliag commented 11 months ago

No longer a priority

data-matt commented 11 months ago

Reopening for tracking purposes.