Consult a great god!!!!!!
There is A table in A DB, save the data in 30 days, insert new data every day & amp; Delete old data,
Data query for 10 days, need to 35 seconds,
The whole table to generate a new table, the new table query 2 seconds,
In the DB B, have the same update tables, query time in 1 seconds,
Two in the DB table structure, data insertion way,
Ask how to troubleshoot the cause of query speed difference so big,