On 9/15/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Sun, 2007-09-16 at 00:36 +0000, Rob Hudson wrote: > > http://code.djangoproject.com/ticket/2465 > > > > I'm running into this and it makes sense to me that select_related > > should do this right. I'm curious of Adrian's comment about this > > involving a bunch of LEFT JOINs and why that's a bad thing? > > It's a lot slower at the SQL level. Try it and see: put two joined > tables into a database and allow the foreign key column to be NULL. Put > in 100,000 rows or so. Now select a joined version of the tables using > INNER joins and then LEFT OUTER joins. Time it. Notice the difference. > Imagine you were doing that a few times a second.
Thanks for the reply and explanation. -Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
