Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

ok, now i cant resist

> This article speaks to me. So many times I have needed to go back and fix queries that were naively written this way like it was some kind of "optimization"

in some cases, doing joins in the application is more performant then making the database do it. Its usually better to do it by join, but depending on the data you're joining you might incur significant slowdowns. Its always better to start with the join and only evaluate the application join if there is a need to improve the performance however. Nonetheless, a sweeping statement like yours doesn't help either.



Read my comment again, I said in the vast majority of cases, not "all".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: