cockroachdb / cockroachdb/cockroach

Surface Information Regarding Predicates Without an Index

Open
#107,494 2 comments 0 reactions 0 assignees View on GitHub
A-cluster-observability C-enhancement T-observability X-nostale
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

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](https://github.com/cockroachdb/cockroach/issues/82493). 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:
- Help users identify queries that might benefit from additional indexes. While adding indexes has its trade-offs, having this information can enable users to make more informed decisions.
- Provide internal telemetry to help measure plan efficiency.

Jira issue: CRDB-30080

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.