Create a joint index MySQL should pay attention to?

  • Joint index to follow the most left-prefix principles, we will not use the index
  • Mysql using an index from left to right in the field, a query can be just a part of the index, but only the leftmost portion.
  • The index is an index (a, b, c), or a support a, b or a, b, c to find combinations. 3, but not b, c to find

 

 

 


[Java interview questions and answers To arrange recommend

 

Published 407 original articles · won praise 1442 · Views 1.51 million +

Guess you like

Origin blog.csdn.net/meism5/article/details/104205982