For example, if I have a table with a city
and a state
column, what is the best way to use the index?
Obviously city
will have the highest cardinality, so should I put that column first in the index, should I put state or doesn't it matter much?