Skip to content
Advertisement

Mysql Inner Select Optimization

I have a following mysql query which consists some inner select operations. But it is to slow to get output from that query..

First inner select takes sum of wordCounts and second one takes wordcounts and the outer select take division of them. Is there any way to make it a bit more faster ? Thanks for your interest..

Advertisement

Answer

First, I’m not sure why you have a second subquery. I think this should do what you want:

This will speed up the query a bit.

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