SQL Optimization

If, like me, you often dabble in writing your own dynamic apps that are driven (at least in part) by MySQL, you might want to check out this little snippet: How not to optimize a MySQL query.

Of course, the name sounds somewhat counter-intuitive; it’s actually in response to a recent article that hit the front page of Digg on how to optimize your queries. The author of the above post notes the original poster’s flaws in the attempt, and gives some broad suggestions on rectifying them. Most significantly, he sums things up with a simple statement: “Learn SQL”. He points out that each case is unique, so there isn’t a formula to follow.

It’s brief and to the point. Two minutes or so reading, and it should get across some simple yet valuable points. If you work with SQL, I’d suggest giving it a quick read-through.



Comments

No comments yet.

Add Yours

  • Author Avatar

    YOU


Comment Arrow



About Author

Eric Stern

Eric is a freelance web application developer who specializes in creating awesome sites in PHP and MySQL. He loves and follows web standards, and writing lean, efficient code. He also is a hobbyist photographer entering the semi-pro market. If you are interested in hiring him, visit his personal site.