I have a slow mySQL query in my application that I need to rewrite. The problem is that it is only slow on my production server and only when it is not cached. The first time I run it, it will take 12 seconds, then at any time after that there will be 500 milliseconds.
Is there an easy way to verify this query without getting into the query cache so that I can see the results of my refactoring?
Thank!
source
share