Quantcast
Channel: Planet MySQL
Viewing all articles
Browse latest Browse all 18800

Bad Optimizer Plan on Queries Combining WHERE, ORDER BY and LIMIT

$
0
0
Sometimes, the MySQL Optimizer chooses a wrong plan, and a query that should execute in less than 0.1 second ends-up running for 12 minutes !  This is not a new problem: bugs about this can be traced back to 2014, and a blog post on the subject dates of 2015.  But even if this is old news, because this problem recently came to my attention, it is a problem worth writing on. This is an improved

Viewing all articles
Browse latest Browse all 18800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>