1

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

1 Answer 1

4

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.