Skip to content
Advertisement

What is the best solution for adding INDEX to speed up the query?

Now I have a Query that runs 50 minutes on Mysql database and I can’t accept that…

I want this process can running under 15 minutes….

The “sourcetableid” and “mstid” are unique.

So what is the best way to add INDEX or optimize on this?

Thank you

Advertisement

Answer

I would write the select as:

Then you want an index on IC_PURGE_LocationHeader(concatkey).

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement