Memo: Avoid Nested Queries in MySQL at all costs

Site menu:

Topics

Recent Posts

Blog

 

September 2010
M T W T F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
27282930  

Past Posts

Links:

Tag: nested

Memo: Avoid Nested Queries in MySQL at all costs

December 10th, 2008 by Scott Selikoff

Some of my readers may be aware that nested subqueries such as “SELECT * FROM widgets WHERE id IN (SELECT …)”, don’t work all that well in MYSQL. While the syntax is usually correct, the performance issues in practice can be horrendous. This article delves deeper into this issue, and why MySQL performs so poorly [...]