Quote:
|
Originally Posted by aschk
By doing "USING BTREE(tempvar1)" you are telling MySQL that the index for that key should be created using the Binary Tree algorithm.
|
If you're dead set on trying to improving performance by overriding the years of experience of the MySQL development team, you should at least know what the words mean.
A binary tree is a
data structure, not an
algorithm. Further, the structure MySQL uses is a variant of the
b-tree, not a
binary tree.
It shouldn't make any difference in the result. However, it would be prudent to perform regression testing. That is, set up two identical databases, one with and one without the indexes. See if a set of test queries on test data produces bit for bit identical results.