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

Possibility to set USE/FORCE/IGNORE INDEX #249

Open
peterpp opened this issue Jan 10, 2020 · 0 comments
Open

Possibility to set USE/FORCE/IGNORE INDEX #249

peterpp opened this issue Jan 10, 2020 · 0 comments

Comments

@peterpp
Copy link

peterpp commented Jan 10, 2020

I have a big table with many records (millions). For some obscure reason, SQL database keep using wrong index, so selecting few rows takes 20 seconds instead of 9 ms. It would be very helpful, if there will be a possibility to set index hints:
https://dev.mysql.com/doc/refman/8.0/en/index-hints.html

For example:

SELECT * 
FROM `big_table` 
USE INDEX (my_better_index)
WHERE ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant