-
Notifications
You must be signed in to change notification settings - Fork 4.1k
opt: no limit on spans created by GenerateConstrainedScans #167620
Copy link
Copy link
Closed
Labels
A-sql-optimizerSQL logical planning and optimizations.SQL logical planning and optimizations.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)O-supportWould prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docsWould prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docsT-sql-queriesSQL Queries TeamSQL Queries Teambranch-release-25.4Used to mark GA and release blockers and technical advisories for 25.4Used to mark GA and release blockers and technical advisories for 25.4branch-release-25.4.10-rcbranch-release-26.1Used to mark GA and release blockers, technical advisories, and bugs for 26.1Used to mark GA and release blockers, technical advisories, and bugs for 26.1branch-release-26.2Used to mark GA and release blockers, technical advisories, and bugs for 26.2Used to mark GA and release blockers, technical advisories, and bugs for 26.2target-release-25.4.11target-release-26.1.5target-release-26.2.1target-release-26.3.0v25.4.10
Metadata
Metadata
Assignees
Labels
A-sql-optimizerSQL logical planning and optimizations.SQL logical planning and optimizations.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)O-supportWould prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docsWould prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docsT-sql-queriesSQL Queries TeamSQL Queries Teambranch-release-25.4Used to mark GA and release blockers and technical advisories for 25.4Used to mark GA and release blockers and technical advisories for 25.4branch-release-25.4.10-rcbranch-release-26.1Used to mark GA and release blockers, technical advisories, and bugs for 26.1Used to mark GA and release blockers, technical advisories, and bugs for 26.1branch-release-26.2Used to mark GA and release blockers, technical advisories, and bugs for 26.2Used to mark GA and release blockers, technical advisories, and bugs for 26.2target-release-25.4.11target-release-26.1.5target-release-26.2.1target-release-26.3.0v25.4.10
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
For queries with multiple IN sets covered by a secondary index, the optimizer's GenerateConstrainedScans rule can end up creating an unbounded number of spans on that secondary index, which blows out planning time. Here's an example:
We already have span limits in GenerateSplitScan and GenerateLocalityOptimizedScan. We should add a span limit to GenerateConstrainedScans.
Jira issue: CRDB-62557