Categories
josephscott

Jeremy Cole on MySQL Subquery Optimization

From Jeremy’s MySQL wish list (emphasis mine):

e. Fix subquery optimization

Subqueries have been available in the same broken state for over 4 years now. Why are subqueries in an IN (…) clause still optimized in an incredibly stupid and slow way, such as to make them useless? We have customers tripping over this all the time. MySQL can check off “subqueries” on the to-do list, since they do in fact work. The SQL standard doesn’t say anything about not sucking.

Reading this, I had a mental image of the next SQL spec having a line in there about sub-queries that don’t suck 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *