Posts: 3,139
Name: Thierry
Location: I'm the uber Spaminator !
|
Quote:
Originally Posted by mtishetsky
following tripy's advice keep in mind that subqueries most often work slower than joins, especially on simple queries like yours
|
Your solution made me wonder if I did overlooked something.
Checking it, I understood that "left join" is a shortcut for "left outer join", which makes perfect sense.
But on the performance statement, I do think they are mostly equals.
outer join are hard on the query planner too.
At least on pgsql and ms sql server, I see very little differences in term of performances between an outer join and a not exists condition.
I didn't used mysql for several years, so I could not say for sure how the planner handled those 2 cases.
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 08-07-2008 at 08:01 AM..
|