Subject: | [request] Adding index hints |
Recently I ran into a statement that required the use of an index hint
to get the MySQL optimizer to use the correct index. However, there
doesn't appear to be support for this in SQL-Abstract. Is this a feature
that might be worth considering adding?
I've written it up its implementation already as well as some tests for
it. The only thing I wasn't sure about was how the select statement
should be extended ( I didn't extend where, but that would be trivial ).
At the moment it made more sense to me to put the index clause before
the where clause. But to do this I had to make the index clause
recognizable from the where clause, so its a reference of a reference.
Cheap trick, I know. Moving to the end of the where arguments is the
alternative. I opted the (ref) route because putting the index clause at
the end just makes it a little weirder to read.
Thoughts, opinions?