Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make FOREIGN KEY constraint to use any suitable index #7964

Open
hvlad opened this issue Jan 16, 2024 · 3 comments
Open

Make FOREIGN KEY constraint to use any suitable index #7964

hvlad opened this issue Jan 16, 2024 · 3 comments
Assignees

Comments

@hvlad
Copy link
Member

hvlad commented Jan 16, 2024

Ability to automatically choose existing index to check FK constraint allows to lower number of indices and consume less disk and CPU resources.

@hvlad hvlad self-assigned this Jan 16, 2024
@dyemanov
Copy link
Member

#7258 ?

@hvlad
Copy link
Member Author

hvlad commented Jan 17, 2024

This ticket a bit more wide than #7258 - it is about automatically choose existing index (no user interaction) vs explicitly set index to use by user.
But, details is not fixed yet, so it could be discussed if necessary.

@dyemanov
Copy link
Member

Well, I read #7258 exactly as the engine should track other indices and use any suitable one automagically. But I don't mind if we also offer some manual way. Let's get back to it after the automatic solution is implemented.

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

No branches or pull requests

2 participants