Skip to content

sql: add a way to control index choice in post-queries #141662

Open
@yuzefovich

Description

We currently support index hints in the main query (as well as subqueries (?)), and it would be nice if we had a way to control the plan in the post-queries. For example, we might want to force usage of the PK in the FK check query.

The main difficulty will be coming up with the UX around this. One idea could be utilizing the external query plan hints that Drew has the prototype for; another way could be annotating the FK constraint itself in the schema somehow. This would have been useful as a workaround during this support ticket.

Jira issue: CRDB-47946

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)O-postmortemOriginated from a Postmortem action item.P-3Issues/test failures with no fix SLA

    Type

    No type

    Projects

    • Status

      Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions