When show index in a table, there are two parts Collation and Cardinality which I don't understand what there usage is. Anyone could briefly explain?
1 Answer
Collation is the way sorting takes place, based on the character set you specify. See https://dev.mysql.com/doc/refman/5.5/en/charset-charsets.html
Cardinality is basically "How many unique elements does this column contain." A table with low cardinality has few unique values. Lookup tables generally have much lower cardinality than tables of a particular entity such as Customers.
http://en.wikipedia.org/wiki/Cardinality_%28SQL_statements%29