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

Perhaps I'm missing something, but why is query 2's meal_items a left join when the where clause then forces it to act as if it were an inner join? Would changing that have any impact?


Author here, you are indeed correct that Query #2's final join can be an INNER join. However, I just tested it against our test data set and it makes no impact on the performance.


Ah well, thanks for humouring me. Good thing those query optimisers do the right thing on occasion.




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

Search: