Home > database > The data query after the application of the order by special slow, help me to look at it
The data query after the application of the order by special slow, help me to look at it
Time:09-27
SQL statements are as follows:
Sort the two fields is added the index, But now get rid of the second sort field is very fast, and it is slow, What should I do with it? Great god look
CodePudding user response:
I try to total_weigh create indexes can be not?
CodePudding user response:
Ordering from two tables, so can't fully make use of the index
CodePudding user response:
# @ ZJCXC - personal WeChat public name this kind of situation can write SQL to optimize don't again