I have a column that's
ENUM('book', 'home', 'recipe', 'sports', 'tech')
.
Do I understand correctly that when I create an index that includes this column, I could set the size to 1 since they all have a unique first character?
If I'm following it correctly, the index would then only save the first letter of the column instead of the entire word *.
The table has 14 million rows, the data is 462.6M, and the index is 611M (just one UNIQUE index), so I'm trying to cut down storage space, and hopefully increase speed a little if I can.
* In retrospect, I do realize that I could just make the column ENUM('b', 'h', ...) and save even more space, but the answer to this will help me with future structures, too.