Skip to content

Possibility to set USE/FORCE/IGNORE INDEX #249

Open

Description

@peterpp

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 ...

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions