Memo: Avoid Nested Queries in MySQL at all costs

Main menu:

Topics

Recent Posts

Blog

 

December 2008
M T W T F S S
« Nov   Jan »
1234567
891011121314
15161718192021
22232425262728
293031  

Past Posts

Java/J2EE

JDBC

Other

Archive for December 10th, 2008

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 [...]