Suggestion MySQL Index Hints
See original GitHub issueHas anyone thought about the ability to add index hints in queries for MySQL. I thought an option like useIndex could passed into the find functions.
Something like the following
var options = {
useIndex: "my_fast_index"
};
mymodel.findAll(options);
I can look at submitting a PR if this interests anyone else.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:11 (5 by maintainers)
Top Results From Across the Web
MySQL 8.0 Reference Manual :: 8.9.4 Index Hints
Index hints give the optimizer information about how to choose indexes during query processing. Index hints, described here, differ from optimizer hints, ...
Read more >Essential Guide To MySQL USE INDEX Hint By Examples
This tutorial shows you how to use the MySQL USE INDEX hint instruct the query optimizer to use only a list of named...
Read more >Choosing the best indexes for MySQL query optimization
Choosing the correct index to optimize an SQL query can be a rather complex task, especially when trying to optimize a complex query...
Read more >Is it a good practice to use index hints in production code?
The main reason why you should avoid it is because it requires explicitly naming an index in your hint, and if the index...
Read more >Index Hints: How to Force Query Plans - MariaDB
Forcing Usage of a Specific Index for the WHERE Clause · USE INDEX: Use a Limited Set of Indexes · IGNORE INDEX: Don't...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Did this ever happen? This functionality would be amazing.
Is this feature added now?