I'm trying to understand what is better when defining multi-column indexes:
- Putting the most selective column first (higher cardinality, for speed?); or
- Putting the less selective column first (Lower cardinality, for index compression?)
Or maybe it depends if I'm optimizing for speed or space?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…