Yesterday, I (Zardosht) posted an entry introducing clustering indexes. Here, I elaborate on
three differences between a clustering index and a covering
index:
-
- Clustering indexes can create indexes that would otherwise
bounce up against the limits on the maximum length and maximum
number of columns in a MySQL index.
- Clustering indexes simplify syntax making them easier and
more intuitive to use.
- Clustering indexes have smaller key sizes leading to better
performance.
Expanding MySQL’s Limits
MySQL allows at most 16 columns in an index and at most 3072 bytes per index. For tables that have more than 16 columns or a row size of greater than 3072 bytes, one cannot create a covering index that includes …
[Read more]