mysql joint index optimization (lock table)

1. Scene

 

 

 Through case, we can find 77w data, check 100, time 57s

Encounter this problem, create a joint index on the line

 

 

Note that, the principle of joint index is left, after filtration through c if three conditions A B C where, with no A and B, C will not go column index

Published 261 original articles · won praise 344 · Views 140,000 +

Guess you like

Origin blog.csdn.net/qq_16855077/article/details/103063030