Using mysql6.0.5 version before, now switch to mysql5.7.20, same database, 6.0.5/6.5.4 version computer a query about 1 to 2 seconds after the restart, but using 5.7.20 versions of the same database as the same query about 12 seconds (a second query speed), what reason be excuse me?
CodePudding user response:
Compare the execution plan, and compare the storage engine,
CodePudding user response:
Multi-table query, the query is simple: the select JGH, MC, b.j e, b.y z from table1. A, (the select JGH, je, yz from table2) b where a. gh=b.j gh, restart the computer after the query 5.7.20 slower than 6.0.05 many for the first time, the second query is soon, version?